Component packs › Kudos › Clap Stack

Clap Stack

Hold and claps drop one by one onto a stack of tokens, faster as you hold, each landing with a bounce while the total rolls up.

Clap Stack is a clap from Kudos, a component pack with 6 reaction controls: Likes, votes and reactions as physical things: cards lift, ribbons drop, tokens stack. Price: $2 for the whole pack.

Built with: press and hold with acceleration, coin tokens with gravity bounce, per-person cap.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Clap Stack props

PropTypeDefaultDescription
countnumber312Claps from everyone else. Default 312.
maxnumber30Most claps one person can give. Default 30.
onClap(yours: number, total: number) => void
darkboolean
autoplaynumber | falseShowcase mode: holds for a moment every N ms.

Methods on the ref

Use it in React

import ClapStack from './ClapStack';

<ClapStack />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Kudos

Good for: Gamification and reactions.