Bevel

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-bevel

About this component

A checkbox from a nineties desktop: a grey dialog with a blue title bar, a sunken white box with hard bevels, and a chunky pixel tick that appears at once, no easing. The dotted focus rectangle is there too.

Triggers

  • Click
  • State change
  • Border
  • Focus

Techniques

  • clip-path
  • Pseudo elements
  • Gradient

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, named by its visible text ("Remember me"); the box and the title bar are aria-hidden, and :focus-visible on the input draws a dotted rectangle round the text.

Reduced motion

The file has no transitions or animations, so it carries no prefers-reduced-motion rule.

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

More checkboxes

See all
BrickGet code
CarbonGet code
Amenities
ChipsGet code
ChromeGet code