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.
Button, badge, and chip
Section titled “Button, badge, and chip”Try the fields
ConnectedUse 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>Card and alert
Section titled “Card and alert”Settings apply to this browser only.
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.
Form controls
Section titled “Form controls”Enter a host name without a protocol.
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>