Motionshelf
← All components

Buttons

Rocket Launch

A button strapped between two boosters on a launch pad: click it for a 3-2-1 countdown, liftoff with flames and smoke, and a parachute ride back down to the pad.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/rocket-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.
onLaunch() => void—Called at liftoff, right after the countdown.
onLand() => void—Called when the button is back on the pad under its parachute.
playgroundClassNamestring""Classes for the flight area, which fills the nearest positioned ancestor.
classNamestring""Extra classes for the button.

Dependencies