Skip to content

Commit

Permalink
fix: typing of trigger prop
Browse files Browse the repository at this point in the history
  • Loading branch information
akash3gtm committed Jan 10, 2025
1 parent 24f39f3 commit 614f2e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/unstyled/tooltip/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export interface InterfaceTooltipProps {
/**
* Function that returns a React Element. This element will be used as a Trigger for the popover.
*/
trigger: ({ ref, onHoverIn, onHoverOut }: any, { open }: any) => void;
trigger: (
{ ref, onHoverIn, onHoverOut }: any,
{ open }: any
) => React.ReactNode;
/**
* Size of the arrow
* @default 12
Expand Down

0 comments on commit 614f2e4

Please sign in to comment.