Tooltip
freeTooltip adds short contextual hints to controls without changing the page layout.
Installation
Add this component with the NateUI CLI.
Examples
Basic
Placement
Custom Content
Default Open
API
Tooltip wraps a trigger element and shows short contextual content on hover or focus. The floating layer is positioned by Floating UI and animated with Motion.
| Prop | Description | Type | Default |
|---|---|---|---|
children | Trigger content wrapped by the tooltip. | ReactNode | - |
className | Class names applied to the floating tooltip content. | string | - |
disabled | Prevents the tooltip from opening. | boolean | - |
open | Initial open state for the tooltip. | boolean | false |
placement | Side and alignment of the floating tooltip. | TooltipPlacement | 'top' |
title | Tooltip content. Required. | string | ReactNode | - |
wrapperClass | Class names applied to the trigger wrapper. | string | - |
...nativeProps | Native props for the trigger wrapper span. | ComponentProps<'span'> | - |