Usage Stack, animated React component
Usage-based pricing you can see: every 10,000 requests is a block that drops into a bin, coloured by the tier it falls in. Slide the volume up and blocks rain in, slide it down and the newest pop, while the monthly price rolls with it and the blocks can be grabbed and thrown.
- Pro
- Pricing Sections
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| defaultValue | number | 120000 | Requests per month to start from, rounded to the nearest 10,000 (0 to 600,000). |
| onChange | (requests: number, price: number) => void | — | Called whenever the volume changes, with the request count and the monthly price in dollars. |
| autoplay | boolean | false | Steps the volume through a few sample values every 2.6s until someone touches the slider or the bin. Off when reduced motion is preferred. |