Skip to content

Commit

Permalink
fix TooltipProps child
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-mikolajczak committed Jan 8, 2024
1 parent 116490e commit b88474a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Tooltip/types.ts
Original file line number Diff line number Diff line change
@@ -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<HTMLElement> | 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;

Expand Down

0 comments on commit b88474a

Please sign in to comment.