Overlays
Preview Card
Non-modal progressive enhancement presenting supplementary preview content.
idle
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Alex Morgan
mizen-tokens
Controlled and keep mounted
A custom popup element that stays mounted.
Open and close delays
Hover intent and pointer travel into the card.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Show supplementary context for a linked resource. Keep the destination understandable without the preview. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Do not put required actions or instructions only in a hover preview. Use Popover for explicit interaction. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Root for hover or focus previews. |
| | — | Native link trigger with render, delay, and closeDelay. |
| | — | Native popup with render, align, sideOffset, anchor, and portalProps. |
| | 600 | Trigger hover delay in milliseconds. Keyboard focus opens immediately. |
| | 300 | Trigger close delay in milliseconds. |
| | center | Alignment relative to the trigger. |
| | 4 | Distance from the trigger in pixels. |
| | — | Native portal props including container and keepMounted. |
| | — | Native parts for custom composition. |