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.

Tooltip Types (Hover to Show)

Various tooltip styles with different sizes. Tooltips appear on hover and are perfect for contextual hints and help text.

Small Light
Small Dark
Medium Light
Medium Dark
Large Rich Light
Large Rich Dark

Tooltip Positions

Control tooltip placement with the placement prop. Supports 12 positions including top, bottom, left, right, and their variants.

Props Reference

Float Component

PropTypeDefaultDescription
trigger"tooltip" | "popover""tooltip"Trigger type: "tooltip" shows on hover, "popover" shows on click
placementPlacementType"top-start"Position: "top", "bottom", "left", "right" with optional "-start" or "-end"
labelReactNodeHelp iconThe trigger element that shows/hides the tooltip/popover
classNamestringDark themeCustom CSS classes for the tooltip/popover container
childrenReactNode-The content to display inside the tooltip/popover
stopPropagationbooleanfalsePrevent 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 className prop 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.