shadcn.io is not affiliated with official shadcn/ui
Checklist FAQ Block for React
A FAQ you tick off for a booking tool: a progress panel beside seven setup tasks, each a real checkbox with its answer, behind a split divider.
Installation
Overview
A checklist FAQ for React with Base UI. The start column holds the title, one sentence and a progress panel: a large count ("3 of 7 done"), a thin bar and a ghost Reset button. The end column holds seven setup tasks behind a split divider that runs from the page's top rule to the block's end, as hairline rows under a rule with + marks. Each task is a real checkbox with its question as the title and its answer beneath it; ticking one crosses its title out and moves the bar and the count. On a phone the panel stacks above the tasks and the rows run from rail to rail. The page's rails and top rule come from the Guides spine, so the block lines up with its neighbours in a stack. It's built from Checkbox, Progress, Guides and Button, with CSS transitions for the entrance and your theme's tokens for every colour. For onboarding pages and setup guides where each answer is also a job to do.
FAQ
How do I change the tasks?
Edit TASKS at the top of the file: each entry is an id, the question that titles the row and its answer, one to three sentences. START lists the ids that are already ticked when the page loads; leave it empty to start at zero. The count, the bar and the hint under it are all worked out from those two arrays, so there is nothing else to keep in step.
Is the progress saved?
No. It lives in the page's memory, so a reload goes back to START. That keeps the block free of storage and consent questions and makes it safe to render on the server. To remember it, write the done array to your own account or storage when it changes and read it back in an effect.
Is a ticked task shown only by a colour?
No. A ticked task has a filled checkbox with a check mark in it, which assistive technology reads as checked, and its title is crossed out and stays at full contrast, so it reads as done without relying on colour. Each checkbox is named by its task's title and described by its answer.
How does a screen reader hear the progress?
The count is a status region, so a polite announcement follows every tick and every Reset ("2 of 7 done"). The bar is named "Setup progress" and its value follows the same count. Focus never moves when you tick a task: you stay on the checkbox you pressed.
Related
- Pro
Wizard FAQ
Steps and plansA FAQ that shows one question at a time for an analytics tool: a numbered step list, the active question and answer, and Previous and Next buttons in a card in card.
- Pro
Onboarding FAQ
Steps and plansA first-hour plan as an FAQ for a team workspace: five accordion steps down a numbered rail, each with its duration, under a header that adds the minutes up.
- Pro
Reading Progress FAQ
Reading and sharingA FAQ for a safety-training platform with a reading tracker: a ring that fills as questions are opened, a check on each row you've read, and a Shine Button once all eight are read.
- Pro
Large Headline Side Checklist Features
Headline-ledA feature section for an onboarding tool with a large headline on the start side and a card-in-card setup checklist beside it, whose real checkboxes drive a progress meter and a spoken count.
- Pro
Checklist Hero
PricingA showcase hero for a single plan: the headline and the price in a card in card, over a grid of eight included features that share their hairlines.
- Pro
Comparison FAQ
Steps and plansA tier-comparison FAQ for a form builder: column heads for Free, Pro and Enterprise over eight questions, each ending in three tick or dash marks and opening to the detail.