Components / component
Pricing Toggle
A monthly and yearly switch. The prices roll into their new values when it changes.

Implementation
A monthly and yearly switch. The prices roll into their new values when it changes.
- Framework
- React 19.3.1 with TypeScript
- Motion
- Native CSS and browser APIs. No GSAP required.
- Available modes
- build
- Version
- 1.0.0 · published
Source code
Quality evidence
Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .
Changelog
v1.0.0 · A monthly and yearly switch. The prices roll into their new values when it changes.
Frequently asked questions
Is the billing switch accessible?
Yes. It is a button with the switch role and an on or off state, and it works with Space and Enter.
What is the yearly price?
It is the price per month when billed annually, so both prices are shown on the same per-month basis.