Components / Forms
Label
Renders an accessible label associated with a control.
<div class="field">
<label class="label" for="demo-label">Your name</label>
<input class="input" id="demo-label" placeholder="Ada Lovelace">
</div>Installation
pnpm dlx loseta add labelnpx loseta add labelAccessibility and behavior
- Use .label or a native <label> inside .field. A label wrapping a .field becomes a selectable card.
Files
components/label.cssbasestyles/nova/label.cssstyleInstall contract
The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.