Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Stepper Wizard Pricing Block for React

A three-question wizard in one ruled band, with numbered steps, the question beside its answer cards and Back and Next, that recommends a plan, then shows its price, features and a summary of the answers.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Guide visitors to the right plan with a stepper wizard, shown here for Innkeep, hotel property management software priced per room. A compact header (a headline and one line) sits over a single ruled band between the page-column rails that Guides draws, with a + mark where the band meets each rail, so the wizard starts at the top of the section. A numbered step list opens the band, and each of three questions about rooms, guests and connections is the question and its helper line beside a set of large answer cards, with Back and Next in a tinted footer. The last step shows the matched plan, its price per room, its call to action and its features beside a summary of the answers, each with a Change button, and Start over clears them. Next and the plan's call to action are the only primary buttons, and never on screen together. It's built from Steps, RadioGroup, Field, Badge, DataList, Guides and ShineButton. Use it for software with several tiers, products with long feature lists, and anywhere a guided choice converts better than a comparison.

FAQ

How do I change the questions, the answers and the scoring?

Edit the QUESTIONS array at the top of the file. Each question has a short step label for the step list, a prompt, a helper line and its answers; each answer has a label, a detail and scores, the points it gives each plan by id (the plans are hostel, boutique and resort). The plans are the PLANS array. The recommendation is the plan with the most points once every question is answered, and a tie goes to the plan listed first, so list the plan you'd rather recommend first.

How do I send the recommended plan to checkout?

The call to action is a link. Point its href at your sign-up or checkout route with the plan's id, such as /signup?plan=boutique, and map plan ids to your billing provider's prices on the server, never in the browser. Pass the answers along too if your CRM should see why the plan was picked.

Is the wizard accessible to keyboard and screen reader users?

Each question is a radio group named by its heading and described by its helper line. Arrow keys move between answers and select them, and nothing moves on by itself: Next does. When the step changes, focus moves to the new step's heading, and a polite live region says which question it is, or which plan matched. The step list marks the current step and is a single tab stop: arrow keys move between the steps you can reach, Enter opens one, and steps that can't be reached yet are disabled.

Can visitors go back and change an answer?

Yes, and their other answers are kept. Back returns one step, the step list jumps to any step up to the first unanswered question, and on the result each answer in the summary has a Change button that opens its question. Start over clears every answer and returns to the first question.

How does the wizard fit small screens?

The question stacks above its answer cards and sits beside them from the lg breakpoint. On narrow screens the step list keeps its numbered indicators and hides the step names visually, so screen readers still hear them. Back and Next stay on one row, and the result's two halves stack. Nothing scrolls sideways at 320px.

When should I use a wizard instead of a comparison table?

Use a wizard when the plans differ along several dimensions that buyers can't weigh easily on their own, such as property size, what guests book and what the software connects to, and a few questions settle it. Use a comparison table when buyers already know what they need and want to scan features side by side.

  • Pro

    A needs checklist for picking a plan: tick what you need and the cheapest plan that covers every need lights up with its price, while each need says which plan it starts at.

  • Pro

    A four-question personality quiz that matches visitors to a plan: the headline beside the quiz, lettered answer cards, and a result with the matched plan, its price and each plan's share of the answers.

  • Pro

    A monthly estimate for Light, Standard and Heavy usage of a speech-to-text API: choosing a profile rolls the total, resizes a tall stacked bar of where the bill comes from and updates each cost line.

  • Pro

    A receipt that prices itself, for a webhook-delivery service: number steppers for seats, events and days of history drive a live bill that stamps the cheapest plan and itemises what goes past its allowance.

  • Pro

    Custom Quote Pricing

    Sales and partners

    A quote request for a security platform: the pitch and three ruled points beside a short form whose submit button sits inside the first screen, and a confirmation that takes focus once it's sent.

  • Pro

    An ROI calculator for a workflow-automation tool: sliders for team size and hours saved a week feed one display-size figure, the net savings a month, with the value of the time, the seat cost and the return under it.