File tree 1 file changed +3
-3
lines changed
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'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
@@ -50,7 +50,7 @@ export interface CFormCheckProps extends HTMLAttributes<HTMLInputElement> {
50
50
/**
51
51
* The element represents a caption for a component. [docs]
52
52
*/
53
- label ?: string
53
+ label ?: string | ReactNode
54
54
/**
55
55
* Size the component large or extra large. Works only with `switch` [docs]
56
56
*
@@ -169,7 +169,7 @@ CFormCheck.propTypes = {
169
169
id : PropTypes . string ,
170
170
inline : PropTypes . bool ,
171
171
invalid : PropTypes . bool ,
172
- label : PropTypes . string ,
172
+ label : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
173
173
size : PropTypes . oneOf ( [ 'lg' , 'xl' ] ) ,
174
174
switch : PropTypes . bool ,
175
175
type : PropTypes . oneOf ( [ 'checkbox' , 'radio' ] ) ,
You can’t perform that action at this time.
0 commit comments