Skip to the page
Tactile UI

Check

An option in a form: a small square key that presses below the plate when chosen, with a tick printed on it.

Element
<input type="checkbox">
Needs
kit.css
Rules
choice.rules.md · 3
Finishes
Aluminium · Graphite · Chalk · Carbon · Oak · Walnut · Porcelain · Black · Daylight · Night · Paper · Phosphor · E-paper · AMOLED
Volumes
Tactile · Quiet
On this page
  1. Variants
  2. Every state, at once
  3. API
  4. Markup
  5. Accessibility
  6. How it’s built
  7. Rules
  8. Related parts

Variants

Label right
In a settings row

Every state, at once

Both finishes, side by side. Hover, pressed and focus are forced with .is-hover, .is-down and .is-focus; checked and disabled are real.

Aluminium

PartOffOnFocus
Check

Graphite

PartOffOnFocus
Check

API

NameKindValuesWhat it does
.tui-checkclasson <input type="checkbox">An 18px square key. Checked: pressed below the plate with a printed tick.
.tui-choiceclasson <label>Lines up the key and its words 8px apart; the whole label is the hit area.
checked · name · valueattributeNative: forms post them unchanged.
changeeventNative.
SpacekeyboardToggles.

Markup

<label class="tui-choice">
  <input type="checkbox" class="tui-check" name="loudness" checked> Loudness to −14 LUFS
</label>

Needs kit.css only, no script. How to install the kit.

Accessibility

  • A real checkbox: reached with Tab, toggled with Space, announced as “Dither, checkbox, not checked”.
  • Checked shows three ways: the key is lower, the tick is printed, and the input is :checked.
  • If the change applies at once, it is a switch; a check is for forms that are saved.

How it’s built

A native checkbox with appearance: none. At rest it carries a small skirt; checked, it moves down 1.5px and takes the kit’s pressed light. The tick is an ::after with two borders, turned 42°. No images.

Rules

choice.rules.mdIn the brain

Checked means pressed below the plate, with a printed tick.

3 rules in this file, with the foundations they rest on and the anti-patterns that break them. Full rules ship in the brain with the Pass.

Radio

One choice from a short list in a form: small round keys in a fieldset, the chosen one pressed with a printed dot.

Switch

On or off, applied the moment it moves. A native checkbox with a ridged thumb in a slot that lights green when on.

Field

Text entry in a recess, the label printed above it, and a hint that says how to fix an error.