Forms
Text fields
Use type="search", type="file", type="date", type="time", or type="color" for other input types.
Code
<label>
<span>Name</span>
<input placeholder="John Doe">
</label>
<label>
<span>Phone number</span>
<input type="tel" placeholder="888 8888 8888">
</label>
<label>
<span>Message</span>
<textarea placeholder="Message"></textarea>
</label>
<label>Choose color<input type="color" value="#62a6ff"></label>Select
Code
<label>
<span>Choose an option</span>
<select>
<option>First</option>
<option>Second</option>
</select>
</label>Slider
Code
<label>
<span>Volume</span>
<input type="range">
</label>Validation
Code
<label>
<span>Valid</span>
<input type="email" aria-invalid="false" value="incorrect@email.com">
</label>
<label>
<span>Invalid</span>
<input type="email" aria-invalid="true" value="correct@email.com">
</label>Checkboxes
Code
<label><input type="checkbox">Receive updates</label>
<label><input type="checkbox">Share anonymous info</label>
<label><input type="checkbox">Enable something</label>Radio buttons
Code
<label><input type="radio" name="radio" value="one" checked>One</label>
<label><input type="radio" name="radio" value="two">Two</label>Switches
Code
<label><input type="checkbox" role="switch">Notify me</label>Buttons
Code
<button class="plain">Plain</button>
<button class="outline">Outline</button>
<button disabled>Disabled</button>
<button>Button</button>
<button aria-busy="true">Loading</button>Use .info for information, .alert for destructive actions, and .warn for
actions that need caution. Use .important (violet) for important actions and
.tip (green) for advice.
These variants also work with .outline, .plain, and links styled as .button.
Their colors adapt to light and dark mode.
Blue — info
Code
<button class="info">View details</button>
<button class="info outline">More information</button>
<button class="info plain">View information</button>Green — tip
Code
<button class="tip">Show tip</button>
<button class="tip outline">View suggestions</button>
<button class="tip plain">Show shortcut</button>Violet — important
Code
<button class="important">Save recovery codes</button>
<button class="important outline">Review requirements</button>
<button class="important plain">View requirements</button>Red — alert
Code
<button class="alert">Delete account</button>
<button class="alert outline">Discard changes</button>
<button class="alert plain">Remove item</button>Orange — warn
Code
<button class="warn">Pause subscription</button>
<button class="warn outline">Retry payment</button>
<button class="warn plain">Review changes</button>Spinner
Loading...
Code
<div class="card" aria-busy="true">
Loading...
</div>