shadcn.io is not affiliated with official shadcn/ui
Minimal FAQ Block for React
A type-forward FAQ for a stationery brand: six questions in large type with their answers on show in a definition list, no cards or row lines, and one contact link.
Installation
Overview
A minimal FAQ for React with Base UI. Under the page's top rule, a title and one sentence sit on a narrow centred column, followed by a rule with + marks and six questions in a definition list: each question in large medium-weight type and its answer in muted text beneath it, all on show, divided by white space alone. There are no cards, icons or row lines: the only lines are the page's rails and the rule under the header. A ghost link closes the column. 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 Guides and Button, with CSS transitions for the entrance and your theme's tokens for every colour. For brand pages and small shops where the words should do all the work.
FAQ
How do I change the questions?
Edit ENTRIES at the top of the file: each entry is an id, the question and its answer, one to three sentences. Six to eight suit the layout. With no lines between them, more than about eight start to read as a wall of text, and an accordion serves a longer list better.
Why a definition list, and not headings?
Every answer is on show, which is what a definition list is for: each question is a term and its answer is the description, so a screen reader pairs them. HTML doesn't allow headings inside a term, so the questions don't appear in a headings list; the section's h2 still does.
Where does the link go?
It is a ghost button with an arrow (href="#"): point Write to the studio at your contact page or a mailto: address. The block has no other button.
The button renders the link it's given with render, with nativeButton={false}.
Does it follow my theme?
Yes. It uses only your foreground, muted foreground and border colours, so it is light on a light page and dark on a dark one, in every preset.
Related
- Pro
Compact FAQ
Accordion listsA dense FAQ for ski-lift passes: ten tight accordion rows with small type and one-sentence answers in a narrow framed list, a chevron at the start of each row.
- Pro
Card Grid FAQ
Cards and gridsA static FAQ grid for a seed shop: six questions with their answers on show, in cells that share hairlines, each with an icon tile and a topic tag.
- Pro
Numbered FAQ
Accordion listsA numbered FAQ for a wine club: eight accordion rows from rail to rail, with a margin of tabular numerals, 01 to 08, behind a hairline; the open row's numeral turns to full strength.
- Pro
Accordion FAQ
Accordion listsA side-header FAQ for a web analytics tool: the title, one sentence and a contact prompt beside seven questions in an accordion, behind a split divider.
- Pro
FAQ Accordion Hero
Interactive demosA compact hero on ruled bands between solid rails: a headline and a Shine Button, then a band with four common questions in an accordion that opens one at a time, beside a short note.
- Pro
Expandable Cards FAQ
Cards and gridsAn FAQ of six separate cards for a candle subscription, each a collapsible with a topic tag and a round plus that fills in and becomes a minus; the open card lifts.