Pricing with team estimator
Compare per-seat pricing and live team estimates across three plans, with a compact billing and team-size estimator.
bunx --bun @getweini/cli@latest add badge button card range-slider toggle-groupCustomize
- Edit the `plans` prop: `perSeat` is the monthly price per seat, `maxSeats` caps free tiers, and `featured` highlights one card with a badge and the primary button.
- The billing switch is a single-select `ToggleGroup`. `yearlyDiscount` (a fraction) is applied to every paid plan and shown in the switch label.
- The `RangeSlider` selects a low and high team size. Paid cards emphasize the discounted monthly price per seat and show the estimated monthly total for that range beneath it. Change `seatLimits` to move the bounds.
- The default range is 2–5 seats within the 1–25 seat slider bounds, so both handles are easy to distinguish and Starter is available on first view. Change `seatLimits` to suit the expected team size. Selecting a team above a free plan’s limit shows a warning and disables its action until the range fits.
- Prices are formatted with `Intl.NumberFormat` using the `locale` and `currency` props; the block listens to `select` to start checkout.
- The `over-limit` state shows the caption used when the chosen team is larger than a plan allows.