Skip to main content

Popover

Popover is used to display content in an overlay that can be triggered by a button.

Adjust the block size.

Adjust the inline size.

Adjust the maximum block size.

Adjust the maximum inline size.

Adjust the minimum block size.

Adjust the minimum inline size.

Was this section helpful?

Learn more about registering events.

<TTagName> | null
<TTagName> | null
<TTagName> | null
<TTagName> | null
<TTagName> | null
<TTagName> | null
Was this section helpful?

Code

<s-button commandFor="product-options-popover">Product options</s-button>

<s-popover id="product-options-popover" accessibilityLabel="Product options">
<s-stack direction="column" gap="small-500" padding="small-200 small-300">
<s-button variant="tertiary">Import</s-button>
<s-button variant="tertiary">Export</s-button>
</s-stack>
</s-popover>

Preview