Examples
Create account card
The canonical signup card: social sign-in first, a quiet divider, then email, password and one full-width primary.
Preview
Create an account
Enter your email below to create your account
Or continue with
HTML
<bs:bsui-card>
<bs:bsui-card-header>
<bs:bsui-card-title label="Create an account" />
<bs:bsui-card-description label="Enter your email below to create your account" />
</bs:bsui-card-header>
<bs:bsui-card-content>
<bs:bsui-stack direction="column" gap="4" align="stretch">
<bs:bsui-stack direction="row" gap="2" align="stretch">
<bs:bsui-stack direction="column" align="stretch" grow="true">
<bs:bsui-button label="Continue with GitHub" variant="outline" />
</bs:bsui-stack>
<bs:bsui-stack direction="column" align="stretch" grow="true">
<bs:bsui-button label="Continue with Google" variant="outline" />
</bs:bsui-stack>
</bs:bsui-stack>
<bs:bsui-stack direction="column" gap="1" align="center">
<bs:bsui-text content="Or continue with" variant="caption" tag="span" />
</bs:bsui-stack>
<bs:bsui-field>
<bs:bsui-field-label text="Email" />
<bs:bsui-input type="email" name="email" placeholder="m@example.com" />
</bs:bsui-field>
<bs:bsui-field>
<bs:bsui-field-label text="Password" />
<bs:bsui-password-input name="password" placeholder="" />
<bs:bsui-field-description text="Must be at least 8 characters long." />
</bs:bsui-field>
<bs:bsui-button label="Create account" variant="default" />
</bs:bsui-stack>
</bs:bsui-card-content>
</bs:bsui-card>How it works
A form store validates both fields on blur and keeps the primary disabled in state until email and password pass. Field errors render through context under the inputs, and the social buttons hand off to their providers without touching that draft.
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.