Skip to content
Buttons

SplitReveal

On hover the face splits in two, top half up and bottom half down, revealing a second label underneath. CSS only.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Click handler.
revealReactNodesame labelLabel under the face.
face[string, string]["#a78bfa", "#1a1530"]Face colour and its label colour.
under[string, string]["#0d0c14", "#ede9fe"]Colour under the face and its label colour.
classNamestringrounded blockReplaces the default look.