---
title: "Check"
description: "Several at once. In a list a check mark is enough, because the whole item is what you press. On its own, a box."
group: "Forms"
order: 6
---

Several at once. In a list a check mark is enough, because the whole item is what you press. On its own, a box.

Styles: `components/check.css`, `components/item.css`, `components/card.css`.

## In a list

```html
<section class="moin-card">
  <form class="moin-list" aria-label="Several at once">
    <label class="moin-item">
      <input type="checkbox" name="demo-many" checked>
      <span class="moin-item-text">
        <span class="moin-item-name">web-1</span>
        <span class="moin-item-note">A checkbox, shown as a check mark</span>
      </span>
      <i class="moin-item-check"></i>
    </label>
    <label class="moin-item">
      <input type="checkbox" name="demo-many" checked>
      <span class="moin-item-text">
        <span class="moin-item-name">web-2</span>
      </span>
      <i class="moin-item-check"></i>
    </label>
    <label class="moin-item">
      <input type="checkbox" name="demo-many">
      <span class="moin-item-text">
        <span class="moin-item-name">web-3</span>
      </span>
      <i class="moin-item-check"></i>
    </label>
  </form>
</section>
```

## On its own

```html
<div class="moin-stack" data-gap="4">
  <label class="moin-row" data-gap="2">
    <span class="moin-check">
      <input type="checkbox" checked>
      <span></span>
    </span>
    <span class="moin-text">I agree to the terms</span>
  </label>
  <label class="moin-row" data-gap="2">
    <span class="moin-check">
      <input type="checkbox">
      <span></span>
    </span>
    <span class="moin-text">Send me the changelog</span>
  </label>
  <label class="moin-row" data-gap="2">
    <span class="moin-check">
      <input type="checkbox" disabled>
      <span></span>
    </span>
    <span class="moin-text moin-muted">Cannot change</span>
  </label>
</div>
```

## Before a button

A required box holds the form's buttons: render them `disabled`, and `moin.js` turns them on once every required box is ticked. The server checks it again.
