Skip to content
Cards

DepthStack

Cards wait behind the front card and fan out on hover or keyboard focus. CSS only.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
childrenReactNode—Front card content.
layersnumber2How many cards sit behind.
spreadnumber14How far they fan out, in pixels.
classNamestringdark violet cardLook of the front card.
layerClassNamestringlighter violet cardLook of the cards behind.