Skip to content
Buttons

SlingShot

The button hangs in a wooden catapult. Pull it back and let go: the bands snap and a stone flies the other way. A plain click or Enter does a short shot.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Runs on a click, Enter, Space, or a released pull of 24px or more.
woodstring"#7a4a26"Colour of the fork.
bandstring"#c8423b"Colour of the rubber bands.
stonestring"#f4e7c9"Colour of the stone.
classNamestringamber pillReplaces the button look. The fork stays 240 by 150.