Overlays
Tooltip
Adds concise supplementary context on hover or focus.
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Project shortcuts
Hover or focus an action to see its description.
Grouped tooltips
Adjacent hints open instantly after the first hint.
Animated tooltips
Detached triggers share one popup that changes position, size, and content.
Positions
Hints can appear on each side of their trigger.
Disabled
Disable supplementary hints without disabling the action.
Controlled and long content
Controlled state, kept-mounted portals, and long identifiers.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use a short explanation for a control whose intent needs clarification. |
| Do | Group adjacent hints with TooltipProvider. Use TooltipCreateHandle for one popup that moves between detached triggers. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Do not place interactive content in a tooltip; use Popover. |
| Scope | Keep required instructions visible rather than available only on hover. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Native Base UI root with controlled state, disabled state, handles, and payloads. |
| | — | Render composition, refs, and detached handles. |
| | — | Mizen popup with render props and an animated viewport. |
| | Native defaults | Native Base UI grouping, hover delay, close delay, and timeout. |
| | — | Creates a typed handle for detached triggers sharing a popup. |
| | — | All native Base UI Tooltip parts. |
| | "top" | Popup side. |
| | "center" | Alignment relative to the anchor. |
| | 4 | Gap from the anchor in pixels. |
| | — | Custom element, ref, or virtual positioning anchor. |
| | — | Full native portal props including container, render, and keepMounted. |