Skip to content
Buttons

FlipAction

On hover or focus the whole button flips over in 3D and shows its back face. Reduced motion cross-fades instead.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Click handler.
backReactNodesame labelContent on the back face.
backClassNamestringviolet pillLook of the back face.
classNamestringdark outline pillReplaces the default look.