Motionshelf
← All components

Buttons

Drone Button

A button carried by a drone: it rests on its skids, spools up its rotors when the pointer comes in, flies to the cursor banking like a real quadcopter, kicks up dust near the floor and lands when the pointer leaves.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/drone-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.
maxTiltnumber24Maximum bank in degrees while the drone flies sideways.
agilitynumber1How hard the autopilot chases the pointer; lower drifts, higher snaps.
dustbooleantrueKick up dust when the rotor wash reaches the floor.
playgroundClassNamestring""Classes for the flight area, which fills the nearest positioned ancestor.
classNamestring""Extra classes for the button.

Dependencies