Tooltip
Demo
Props
Prop | Type | Description |
---|---|---|
content | React.ReactNode | The content to display inside the tooltip. |
children | React.ReactNode | The trigger element that the tooltip is attached to. |
sideOffset | number (optional) | The offset from the side of the tooltip to the trigger. |
triggerIsButton | boolean (optional) | Determines if the trigger element is a button. |
classNames | { trigger?: string, content?: string } (optional) | Custom class names for trigger and content components. |
Styles
This component allows for custom styles via the classNames
prop:
trigger
: CSS class for styling the trigger element.content
: CSS class for styling the content of the tooltip.