Skip to main content
Version: Next

Popover API

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

Props​

PropTypeDescription
closeOnEscapeboolean
closeOnOutsideboolean
elevation'none' | 'low' | 'high'
flipboolean
offsetnumber
onClose() => void
onOpen() => void
onOpenChange(detail: PopoverOpenChangeDetail) => void
openboolean
placementPopoverPlacement
radiusnumber | string
shiftboolean
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
tone'brand' | 'neutral' | 'info' | 'success' | 'warning' | 'danger'
variant'surface' | 'soft' | 'solid' | 'glass' | 'contrast' | 'minimal'

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Popover.Trigger props​

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Popover.Content props​

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-popover>​

Popover renders the ui-popover custom element from @editora/ui-core, which can also be used without React.

Attributes: close-on-escape, close-on-outside, elevation, flip, offset, open, placement, radius, shift, size, tone, variant

Events: close, open, open-change