Motionshelf
← All components

Buttons

Falling Letters

Hover the button and its letters drop out one by one, bounce and pile up on the floor; move away and they spring back into place.

Install

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

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

Props

NameTypeDefaultDescription
labelstring—The button text; each letter falls on its own.
playgroundClassNamestring""Classes for the play area, which fills the nearest positioned ancestor.
classNamestring""Extra classes for the button.

Dependencies