Skip to main content
Version: Next

HoverCard API

import { HoverCard } from '@editora/ui-react';

Props​

PropTypeDescription
closeDelaynumber
delaynumber
density'default' | 'compact' | 'comfortable'
elevation'default' | 'none' | 'low' | 'high'
headlessboolean
offsetnumber
onChange(open: boolean) => void
onClose() => void
onOpen() => void
openboolean
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