Measured entry

clay-checkbox

checkboxclaymorphismfirst party

A single-file React checkbox that ships as a default JSX export with controlled and uncontrolled state support. It uses a native checkbox hidden behind a clay-styled visual control, depends on React for state, and expects Tailwind CSS to supply its utility, peer-state, focus, and arbitrary-value styles.

Specimen
Harness screenshot of clay-checkbox at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of clay-checkbox at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of clay-checkbox at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for clay-checkbox
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal18.2 KB (83.6 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A dependable, accessible choice for playful Tailwind interfaces: it builds and mounts cleanly, adapts without overflow, and reports no automated accessibility violations. The main tradeoff is a narrow API and heavily hard-coded visual treatment.

Use it if

  • You want a playful clay-style checkbox for a Tailwind-based React interface.
  • You need the option to manage checked state internally or from a parent component.
  • You want a native labeled input with visible keyboard focus and disabled-state styling.

Skip it if

  • Your project does not use Tailwind and you do not want to recreate the utility-driven styling.
  • Your design system forbids hard-coded colors, shadows, radii, or typography weights.
  • You need an indeterminate state or direct support for input attributes such as name, value, or required.
  • Your form abstractions expect the standard React change event instead of a boolean-first callback.

Install

Installation record for clay-checkbox
Declared dependenciesnone declared
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

First-party component from the sir-originals set. In a non-shadcn React project, add Tailwind CSS and ensure it scans this JSX file so the peer, focus-visible, screen-reader, transition, and arbitrary-value utilities are generated. Copy the component directly; no provider or shadcn scaffolding is required.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

mrkeyoor/sir-originals
License
MIT
Record published
2026-08-13

Alternatives

Other published entries for the checkbox pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.