Neon

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-neon

About this component

A dark box with a near-invisible border that transforms into a white neon sign on check. A brief 400ms flicker keyframe (simulating a neon tube buzzing to life) plays on activation. The check stroke has a drop-shadow glow matching the neon color.

Triggers

  • Click
  • State change
  • Glow
  • Neon
  • Keyframe

Techniques

  • Keyframe animation
  • SVG filter

Difficulty

Intermediate

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

Flicker animation skipped under prefers-reduced-motion.

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

More checkboxes

See all
Orbit SnapGet code
Pixel FillGet code
Pressure DipGet code
Pulse RingGet code