Kodza

Checkbox

Real checkboxes, redrawn: ink grows from the centre and the tick draws itself. A select-all box shows a dash when only some are checked. Cards too.

Forms No dependencies checkboxformselect-allcards Added Oct 2025
/anim/checkbox-component/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Restyle the checkboxes of my signup form with Kodza Checkbox.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-checkbox-component.html
<fieldset class="kodza-checkbox">
  <legend class="kodza-checkbox__legend">Email me about</legend>
  <label class="kodza-checkbox__item kodza-checkbox__item--all">
    <input class="kodza-checkbox__input" type="checkbox" data-all>
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">Everything</span>
  </label>
  <label class="kodza-checkbox__item">
    <input class="kodza-checkbox__input" type="checkbox" name="topics" value="components" checked>
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">New components<small>Every Tuesday, give or take a deploy.</small></span>
  </label>
  <label class="kodza-checkbox__item">
    <input class="kodza-checkbox__input" type="checkbox" name="topics" value="changelog">
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">The changelog<small>What broke, what we fixed, who to blame.</small></span>
  </label>
  <label class="kodza-checkbox__item">
    <input class="kodza-checkbox__input" type="checkbox" name="topics" value="memes" disabled>
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">Memes<small>Not available in your region. Or any region.</small></span>
  </label>
</fieldset>

<fieldset class="kodza-checkbox kodza-checkbox--cards">
  <legend class="kodza-checkbox__legend">Your stack</legend>
  <label class="kodza-checkbox__item">
    <input class="kodza-checkbox__input" type="checkbox" name="stack" value="html" checked>
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">HTML<small>The classic.</small></span>
  </label>
  <label class="kodza-checkbox__item">
    <input class="kodza-checkbox__input" type="checkbox" name="stack" value="css">
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">CSS<small>Cascading on purpose.</small></span>
  </label>
  <label class="kodza-checkbox__item">
    <input class="kodza-checkbox__input" type="checkbox" name="stack" value="js">
    <span class="kodza-checkbox__box" aria-hidden="true"><svg viewBox="0 0 16 16"><path class="kodza-checkbox__tick" d="M3.5 8.5l3 3 6-7" pathLength="1"/><path class="kodza-checkbox__dash" d="M4 8h8" pathLength="1"/></svg></span>
    <span class="kodza-checkbox__text">Vanilla JS<small>No flavour added.</small></span>
  </label>
</fieldset>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.

More like this

More in Forms