diff --git a/src/components/Tooltip/types.ts b/src/components/Tooltip/types.ts index 739e9a4d0a22..253013f49761 100644 --- a/src/components/Tooltip/types.ts +++ b/src/components/Tooltip/types.ts @@ -1,9 +1,7 @@ -import type {ReactElement, ReactNode} from 'react'; - -type TooltipProps = { - /** The children to render the tooltip for. On web it has to be proper HTML element to attach event handlers to. */ - children: ReactElement | ReactNode; +import type {ReactNode} from 'react'; +import type ChildrenProps from '@src/types/utils/ChildrenProps'; +type TooltipProps = ChildrenProps & { /** The text to display in the tooltip. If text is ommitted, only children will be rendered. */ text?: string;