Moey Icons
No results. Try “dialog”, “dark” or “grid”.
Forms

Checkbox

Wrap the input in a .form-check label — the whole row is clickable.

<label class="form-check"><input type="checkbox"> Email me</label>
<label class="form-check">
  <input type="checkbox">
  <span>Weekly report <span class="form-text">Every Monday</span></span>
</label>

Colors

Add theme-<color> to the checkbox (or a whole form).

<label class="form-check theme-green"><input type="checkbox" checked> Paid</label>

A group with a legend

Wrap related checkboxes in a <fieldset> so screen readers announce the question.

Notify me about
<fieldset class="form-fieldset grid grid-cols-1 gap-2">
  <legend class="form-label">Notify me about</legend>
  <label class="form-check"><input type="checkbox" checked> New orders</label>
  <label class="form-check"><input type="checkbox" checked> Refund requests</label>
  <label class="form-check"><input type="checkbox"> Product reviews</label>
</fieldset>

Inline

<label class="form-check form-check-inline"><input type="checkbox" checked> Small</label>
<label class="form-check form-check-inline"><input type="checkbox" checked> Medium</label>
<label class="form-check form-check-inline"><input type="checkbox"> Large</label>

With a description

Wrap the words in a <span> with a form-text inside: the description lines up under the label, and clicking it ticks the box too.

<div class="grid grid-cols-1 gap-4 max-w-md">
  <label class="form-check">
    <input type="checkbox" checked>
    <span>Send receipts automatically <span class="form-text">Customers get an email receipt right after paying.</span></span>
  </label>
  <label class="form-check">
    <input type="checkbox">
    <span>Allow guest checkout <span class="form-text">Shoppers can buy without creating an account.</span></span>
  </label>
</div>

Disabled and themed

<label class="form-check"><input type="checkbox" checked disabled> Disabled on</label>
<label class="form-check"><input type="checkbox" disabled> Disabled off</label>
<label class="form-check theme-green"><input type="checkbox" checked> Success</label>
<label class="form-check theme-purple"><input type="checkbox" checked> Accent</label>
<label class="form-check theme-red"><input type="checkbox" checked> Danger</label>