Component packs › Tender › Tip Selector

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.

Tip Selector props

PropTypeDefaultDescription
billnumber
currencystring
optionsnumber[]Percent options.
valuenumber
onChange(percent: number, tip: number, total: number) => void
autoplaynumber | falseShowcase mode: picks another tip every N ms while visible.

Methods on the ref

Use it in React

import TipSelector from './TipSelector';

<TipSelector />

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

More in Tender

Good for: Pricing and payment.