Label

Atom

Standalone form label with an optional required indicator and disabled state, for pairing with custom controls that do not manage their own label.

Basic + required

Preview
Code
<%- include('modules/ui/Label', { for: 'name', label: 'Full name' }) %>
<%- include('modules/ui/Label', { for: 'email', label: 'Email address', required: true }) %>

Disabled

Preview
Code
<%- include('modules/ui/Label', { for: 'handle', label: 'Handle (disabled)', disabled: true }) %>
<input id="handle" disabled placeholder="@handle" />
Source modules/ui/Label.ejs