Text Tooltip
Text Tooltip component displays a tooltip with a message on hover, providing additional context and information about the hovered item.
Tooltip
Text
Description
Reveal
Animation
Installation
Run the following command:
npx gopx-webui add text-tooltip
Props
Prop | Type | Required | Description |
---|---|---|---|
text | string | Yes | The main text that will be displayed when the tooltip is not hovered. |
hoverMessage | string | No | An optional message that will be displayed in the tooltip when the user hovers over the component. |
children | React.ReactNode | No | Optional children elements that can be rendered inside the tooltip area, allowing for more complex content. |