Skip to content

Actions and forms

Start with nw-<component>, then add a supported intent (-primary, -warning), treatment (-soft, -outline), or size (-xs, -sm, -md, -lg). CSS supplies the appearance, not submission or business logic.

Try the fields

Connected

Use buttons for actions and anchors for navigation. Add nw-btn-icon to an icon-only button and give it an accessible name; nw-btn-group keeps related actions together. Badges label a status; chips represent selectable or removable values.

<a class="nw-btn nw-btn-primary nw-btn-cut" href="#form-controls">Try the fields</a>
<span class="nw-badge nw-badge-success nw-badge-soft">Connected</span>
Connection settings

Settings apply to this browser only.

Read-only workspace

You can preview the controls, but they will not change a workspace.

Use nw-card to group related content. Use nw-alert for a message that matters in context. Set role="alert" for urgent messages inserted after the page loads, not static notices.

Enter a host name without a protocol.

Delivery mode

40%

Keep the native input for keyboard behavior. Use nw-input-group for an adjoining label or action, and nw-field-error for validation. When a control is invalid, set aria-invalid="true" and include the error ID in aria-describedby. For nw-slider, update --_slider-value to the input’s percentage if you want the filled portion to track the thumb.

<label class="nw-label">
<input class="nw-switch" type="checkbox" role="switch" />
Show telemetry
</label>