Skip to content

Commit c943823

Browse files
committed
fix(CTooltip): fix wrong PropTypes
1 parent ddc3939 commit c943823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/coreui-react/src/components/tooltip/CTooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface CTooltipProps {
1313
/**
1414
* Content node for your component.
1515
*/
16-
content: ReactNode
16+
content: ReactNode | string
1717
/**
1818
* Callback fired when the component requests to be hidden.
1919
*/
@@ -126,7 +126,7 @@ export const CTooltip: FC<CTooltipProps> = ({
126126

127127
CTooltip.propTypes = {
128128
children: PropTypes.any,
129-
content: PropTypes.node,
129+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
130130
placement: PropTypes.oneOf(['auto', 'top', 'right', 'bottom', 'left']),
131131
onHide: PropTypes.func,
132132
onShow: PropTypes.func,

0 commit comments

Comments
 (0)