Tooltip & Popover ✨
Flexible tooltip and popover components built with Float UI. Supports hover tooltips and click popovers with customizable positioning.
Popover (Click to Open)
Interactive popover component triggered by clicking. Useful for forms, menus, and custom interactive content.
Add your review here (Click me)
Tooltip Types (Hover to Show)
Various tooltip styles with different sizes. Tooltips appear on hover and are perfect for contextual hints and help text.
Hover me
Small Light
Hover me
Small Dark
Hover me
Medium Light
Hover me
Medium Dark
Hover me
Large Rich Light
Hover me
Large Rich Dark
Tooltip Positions
Control tooltip placement with the placement prop. Supports 12 positions including top, bottom, left, right, and their variants.
Top
Bottom
Left
Right
Top Start
Top End
Bottom Start
Bottom End
Props Reference
Float Component
| Prop | Type | Default | Description |
|---|---|---|---|
| trigger | "tooltip" | "popover" | "tooltip" | Trigger type: "tooltip" shows on hover, "popover" shows on click |
| placement | PlacementType | "top-start" | Position: "top", "bottom", "left", "right" with optional "-start" or "-end" |
| label | ReactNode | Help icon | The trigger element that shows/hides the tooltip/popover |
| className | string | Dark theme | Custom CSS classes for the tooltip/popover container |
| children | ReactNode | - | The content to display inside the tooltip/popover |
| stopPropagation | boolean | false | Prevent click events from bubbling up |
Usage Tips
- Tooltips (hover): Set
trigger="tooltip"for hover-based tooltips. Great for hints and contextual help. - Popovers (click): Set
trigger="popover"for click-based popovers. Perfect for forms, menus, and interactive content. - Styling: Use the
classNameprop to customize appearance. Add padding, colors, borders, and shadows. - Positioning: The component automatically handles positioning and will flip/shift to stay visible in the viewport.
- Accessibility: Built with Floating UI for proper focus management and ARIA attributes.