Skip to content
Buttons

DepthPress

The button sits on a solid slab. Hover lifts it a little, a press sinks it flat, like a real key.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Click handler.
basestring"#5b3fc4"Colour of the slab side.
depthnumber6Slab height in pixels.
classNamestringviolet blockReplaces the default look.