Nutcracker

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-nutcracker

About this component

A lever nutcracker with a walnut in its jaws: press the arm and it closes, the nut compresses and cracks, the shell halves fall away and a new nut rolls in once the arm lifts.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers2

  • Click
  • State change

Techniques3

  • Keyframes
  • Radial gradient
  • border-radius

Accessibility

Keyboard and screen readers

A native button named "Crack", renamed while cracking; the nutcracker is aria-hidden.

Reduced motion

The arm closes and opens without the timeline.

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

More buttons

See all
Pedal binGet code
PlaneGet code
Pop itGet code
PuttyGet code