Skip to content
Cards

InfiniteStack

Swipe the top card away, or focus the stack and press the arrow keys, and it goes to the back. The stack loops forever.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
itemsReactNode[]—One entry per card, at least 2.
visiblenumber3Cards shown behind the top one.
labelstring"Card stack"Name read by screen readers.
classNamestringdark violet cardLook of every card.