HoverCard API
import { HoverCard } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
closeDelay | number | |
delay | number | |
density | 'default' | 'compact' | 'comfortable' | |
elevation | 'default' | 'none' | 'low' | 'high' | |
headless | boolean | |
offset | number | |
onChange | (open: boolean) => void | |
onClose | () => void | |
onOpen | () => void | |
open | boolean | |
placement | 'top' | 'bottom' | 'left' | 'right' | |
shape | 'default' | 'square' | 'soft' | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'line' | 'glass' | 'contrast' | 'minimal' | 'elevated' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
HoverCard.Trigger props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
HoverCard.Content props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-hover-card>
HoverCard renders the ui-hover-card custom element from @editora/ui-core, which can also be used without React.
Attributes: close-delay, delay, density, elevation, headless, offset, open, placement, shape, tone, variant
Events: change, close, hide, open, show