File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import React , { forwardRef , HTMLAttributes } from 'react'
1+ import React , { forwardRef , HTMLAttributes , ReactNode } from 'react'
22import PropTypes from 'prop-types'
33import classNames from 'classnames'
44
@@ -50,7 +50,7 @@ export interface CFormCheckProps extends HTMLAttributes<HTMLInputElement> {
5050 /**
5151 * The element represents a caption for a component. [docs]
5252 */
53- label ?: string
53+ label ?: string | ReactNode
5454 /**
5555 * Size the component large or extra large. Works only with `switch` [docs]
5656 *
@@ -169,7 +169,7 @@ CFormCheck.propTypes = {
169169 id : PropTypes . string ,
170170 inline : PropTypes . bool ,
171171 invalid : PropTypes . bool ,
172- label : PropTypes . string ,
172+ label : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
173173 size : PropTypes . oneOf ( [ 'lg' , 'xl' ] ) ,
174174 switch : PropTypes . bool ,
175175 type : PropTypes . oneOf ( [ 'checkbox' , 'radio' ] ) ,
You can’t perform that action at this time.
0 commit comments