Skip to main content

PosBlock

Use s-pos-block to create a surface on the specified block extension target, serving as a container to place content with an action button.

string
Default: undefined

Adds title text displayed at the top left of the section

Mobile surfaces: Uses the standard POS Design System heading style for a section (not h2).

Was this section helpful?

HTMLElement
Was this section helpful?

Code

<s-pos-block>
<s-button
slot="secondary-actions"
onClick={onActionClick}
>
Action
</s-button>
<s-box padding="base">
<s-text>Label</s-text>
</s-box>
</s-pos-block>

Preview