Silicone

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-silicone

About this component

A soft-touch silicone key for a checkbox: pale lilac rubber with a tick moulded faintly into it. Pressing it squashes the key, and ticked it turns deep violet with the tick filled in white, like a backlit legend.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • CSS transition
  • SVG
  • Filter

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, named by aria-label ("Haptics"); everything drawn is aria-hidden, and :focus-visible on the input outlines the key.

Reduced motion

Every transition and animation is switched off, so it jumps straight to its final state.

Use it in anything you build, commercial and client work included. Licence

More checkboxes

See all
SpectrumGet code
SunsetGet code
Colours
SwatchGet code
TarmacGet code