Numbered List
A single-column list where each item has a small circular numbered badge before the question, with the answer in body text underneath. Every answer is always visible, well suited for onboarding steps or priority-ordered FAQs.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/numbered-list.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/faq/faq16.tsx instead.
Usage
The file also exports faq16Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Faq16, faq16Demo } from "@/components/blocks/faq/faq16"; export default function Page() { return <Faq16 {...faq16Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Frequently asked questions" | Section heading. |
| description | string | "The most common questions..." | Supporting copy under the heading. |
| items | FaqItem[] | none | Question and answer pairs, numbered in the order given. |
| className | string | none | Extra classes for the outer section element. |
Types
interface FaqItem { question: string; answer: string; }
Behavior notes
- Always-open, static list, there's no expand/collapse, both question and answer render together for every item.
- Numbers are derived from each item's index in the `items` array plus one, not stored per item, so reordering the array reorders the numbering automatically.
More FAQ Blocks
View all →collapsible-accordion
Collapsible Accordion
Stacked cards with expandable sections, for full-length answers in a compact format.
open-list-layout
Open List Layout
Questions with answers displayed directly below in a simple always-open list.
three-column-grid
Three Column Grid
Q&A pairs arranged in a responsive grid layout, always open.
tabbed-categories
Tabbed Categories
Sidebar navigation with category tabs and an accordion of that category's questions.
searchable-accordion
Searchable Accordion
Search input that filters accordion items in real-time by question and answer text.
grouped-sections
Grouped Sections
FAQs organized into titled sections, each with its own independent accordion below it.