Popover
Data Display
@rockshin/tao-uiDisplays a floating card with rich content anchored to a trigger element, opened by click or hover.
When to use
Use Popover for rich, non-blocking contextual content behind a click or hover. Use Tooltip for short text-only hints and Modal for blocking interactions.
Recommended
- Keep the title to one short line; put detail in the content.
- Use the default hover trigger for read-only previews and trigger="click" for interactive content.
- Keep popup content compact; link out for long-form detail.
Avoid
- Do not nest essential workflows inside a hover-only popover.
- Do not chain popovers from inside another popover.
Examples
Basic usage
Hover, focus, and click
Placement and arrow
Controlled popup and internal dismissal
An action inside the popup can update open and dismiss it after completion.
Focus trigger
Use trigger=focus for keyboard hints and keep essential instructions visible on the page.
Arrow and delay
Hover delays use seconds, and arrow controls the pointer.
Form content
A popup can contain input and actions; submit, report the result, and close it.