Examples
Profile header
A profile header with identity on the left and exactly two weighted actions on the right, outline before the one primary.
Preview
Pedro Duarte
ProHTML
<bs:bsui-stack direction="row" gap="4" align="center" justify="space-between">
<bs:bsui-stack direction="row" gap="3" align="center">
<bs:bsui-avatar fallback="PD" alt="Pedro Duarte" />
<bs:bsui-stack direction="column" gap="1">
<bs:bsui-stack direction="row" gap="2" align="center">
<bs:bsui-text content="Pedro Duarte" variant="title" tag="h3" />
<bs:bsui-badge label="Pro" variant="secondary" />
</bs:bsui-stack>
<bs:bsui-text content="@peduarte" variant="muted" tag="span" />
<bs:bsui-text content="Design tools at Acme Inc. Joined June 2025." variant="caption" tag="span" />
</bs:bsui-stack>
</bs:bsui-stack>
<bs:bsui-stack direction="row" gap="2" align="center">
<bs:bsui-button label="Message" variant="outline" />
<bs:bsui-button label="Follow" variant="default" />
</bs:bsui-stack>
</bs:bsui-stack>How it works
The follow action toggles membership in the store and swaps its own label to Following through a context binding, while message opens a compose surface without touching that state. The badge and joined line render from the same profile record the store hydrated.
Every behaviour on this page is the WordPress Interactivity API: each component registers its own store, seeds its state in a server rendered context, and wires events with directives in the markup above. There is no page specific JavaScript.