Skip to content
Buttons

ShatterPress

A glass pane with a hairline crack. A press breaks it from the exact point you hit, label and all, then every shard flies back into place.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Runs at the moment of the break.
reformnumber1.2Seconds from the break until the pane is whole.
spokesnumber11Cracks from the press point. Each gives two shards.
classNamestringglass paneReplaces the pane look. Shards copy it.