GitHub

/ checkbox

Checkbox

@kumiki/atelier/checkbox

Layer 5 preview — styled tri-state Checkbox (Tailwind + vanilla).

This component, layer by layer

Styled, copy-paste presets (preview). Run pnpm kumiki add to drop the source into your project, then edit freely.

Live preview

Live preview…

Install
pnpm add @kumiki/atelier
Tri-state checkbox
<script lang="ts">
  import { Tailwind as Checkbox } from '@kumiki/atelier/checkbox';
  import type { CheckboxValue } from '@kumiki/components/checkbox';

  let agreed = $state<CheckboxValue>('unchecked');
</script>

<label>
  <Checkbox.Root id="agree" bind:value={agreed} />
  <span>I agree to the terms</span>
</label>

/ accessibility

Accessibility

axe-core — run on every PR (LTR + RTL × every documented state).

Keyboard

KeyEffect
SpaceToggles checked / unchecked.
TabMove focus.

Test discipline

  • axe-core — run on every PR (LTR + RTL × every documented state).
  • APG keyboard tests — Playwright, hand-written per pattern.
  • VoiceOver / NVDA — Guidepup nightly schedule.
  • Type-level required names — title / aria-label / aria-labelledby.