Skip to main content

Popover

Popovers are used to display content in an overlay that can be triggered by a button.

Default: 'auto'

Adjust the block size.

string

A unique identifier for the element.

Default: 'auto'

Adjust the inline size.

Default: 'none'

Adjust the maximum block size.

Default: 'none'

Adjust the maximum inline size.

Default: '0'

Adjust the minimum block size.

Default: '0'

Adjust the minimum inline size.

Was this section helpful?

((event: <typeof tagName>) => void) | null

Callback fired after the overlay is hidden.

((event: <typeof tagName>) => void) | null

Callback fired after the overlay is shown.

Was this section helpful?

Code

<s-button commandFor="popover-veteran-id">Open Popover</s-button>
<s-popover id="popover-veteran-id">
<s-stack gap="base" padding="base" direction="inline">
<s-text-field label="Veteran ID"></s-text-field>
<s-button variant="primary">Validate</s-button>
</s-stack>
</s-popover>

Preview