Component packs › Tender › Tip Selector
Choosing a tip flies coins from the button onto a stack beside the total, which counts up as each coin lands.
Tip Selector is a selector from Tender, a component pack with 6 payment components: Payment components where you watch the money move. Price: $2 for the whole pack.
Built with: coin per unit, stacking coins, custom slider.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
bill | number | ||
currency | string | ||
options | number[] | Percent options. | |
value | number | ||
onChange | (percent: number, tip: number, total: number) => void | ||
autoplay | number | false | Showcase mode: picks another tip every N ms while visible. |
readonly percent: numberdestroy(): voidimport TipSelector from './TipSelector';
<TipSelector />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Pricing and payment.