Tooltip
Tooltip component that shows on hover and focus, with four placements and aria-describedby.
How to use it
Run npx @blossomui/react add tooltip, or copy src/components/UI/Tooltip/Tooltip.tsx into your React project and import it.
import { Tooltip } from './components/ui/Tooltip'Props
TooltipProps
| Prop | Type | Description |
|---|---|---|
| content (required) | ReactNode | Text shown inside the tooltip. |
| placement | TooltipPlacement | |
| delay | number | Milliseconds to wait before showing it on hover. |
| arrow | boolean | Show a small arrow that points to the element the tooltip belongs to. |
| className | string | Classes of the element that wraps the trigger. It is `inline-flex` by default. |
| children (required) | ReactNode | The element that triggers the tooltip. It receives the hover and focus listeners. |