Faq List

An FAQ section built on an accessible accordion. Pass question and answer pairs and each one expands in place, with keyboard support and a readable max width.

src/registry/ui/faq-list.tsx/r/faq-list.json

Installation#

bash
npx shadcn@latest add @minidev/faq-list

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/faq-list.json

Usage#

tsx
import { FaqList } from "@/components/ui/faq-list"

export function Example() {
  return (
    <FaqList items={[{ q: "Is it free?", a: "Yes — free React + Tailwind registry." }, { q: "Dark mode?", a: "Tokenized light and dark." }]} />
  )
}

API reference#

FaqList props
PropTypeDefault
itemsFaq[]SAMPLE_ITEMS
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All Landing page sections for React and Tailwind

Learn more