Raised

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-raised

About this component

The checked state looks physically raised off the surface. A sphere-like radial gradient (silver → dark gray) combined with six layered box-shadows (rim highlight, outer glow, ground lift shadow, inner top shine, inner bottom depth) creates a convincing 3D embossed button. The box also lifts 1px on the Y axis. Flat and recessed when unchecked.

Triggers

  • Click
  • State change
  • 3D
  • Gradient
  • Glow

Techniques

  • Transform only
  • Gradient

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

Hidden native <input type="checkbox">.

Reduced motion

Shadow and transform transitions skipped under prefers-reduced-motion.

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

More checkboxes

See all
Retro LEDGet code
Ripple FillGet code
Round MorphGet code
ScratchGet code