s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Actions and display

Popover

No summary has been written for Popover. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.

Public export

typescript
import { Popover } from '@happyvertical/smrt-ui/ui';
Import path
@happyvertical/smrt-ui/ui
Props
11
Props described
11 of 11
Bindable state
0
Callback events
1
Verified release
0.57.40

Props

NameTypeRequiredDescription
labelstringYesAccessibility label and default trigger text for the popover.
triggerSnippetNoContent rendered inside the trigger button in place of the label text.
triggerLabelstringNoAccessible name of the trigger button when it shows only an icon (`aria-label`); omit to use its visible content (an icon trigger then falls back to `label`).
variant'button' | 'icon'NoTrigger look: `button` (bordered, the default) or `icon`, a borderless 44px round icon button that takes the surrounding text colour (set the colour on the popover's `class`).
childrenSnippetNoThe popover content.
openbooleanNoWhether the popover is visible.
disabledbooleanNoBlocks opening the popover.
placement'bottom-start' | 'bottom-end' | 'top-start' | 'top-end'NoPosition of the popover relative to the trigger.
closeOnOutsideClickbooleanNoCloses the popover when clicking outside of it.
onopenchange(open: boolean) => voidNoFired when the open state changes.
classstringNoAdditional CSS class names.

Bindable state

This component has no bindable public state.

Callback events

  • onopenchange(open: boolean) => void

Examples and explanation