Skip to the page
TACTILE UI

Kit part · Checkboxes

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 · Porcelain · Black
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
01

Variants

Label right
In a settings row
02

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
03

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 · valueattribute—Native: forms post them unchanged.
changeevent—Native.
Spacekeyboard—Toggles.
04

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.

05

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.
06

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.

07

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.

08

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.

Docs
Finish
Volume