Motionshelf
← All components

Buttons

Claw Machine

An arcade claw rides a rail after the pointer; click the button and the claw grabs it, swings it over to the prize chute and drops it in, then a fresh one pops up.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/claw-button.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
childrenReactNode—The button label.
chute"left" | "right""right"Side of the prize chute.
onComplete() => void—Called when the button drops into the chute, at the end of the grab.
playgroundClassNamestring""Classes for the play area, which fills the nearest positioned ancestor.
classNamestring""Extra classes for the button.

Dependencies