A basic single-expand accordion
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: The minimal pattern: 3 questions with one answer open at a time and the first open on load
When to use
- Help and FAQ sections where each question opens its own answer
- Settings, plans, product details and onboarding steps grouped into sections that expand on demand
- Lists of people or records that open to show detail, such as team members and roles
When not to use
- Several answers that can stay open at the same time: use the Accordion Plus Minus Icons example
- One block of extra content shown and hidden by a single trigger: use the Collapsible component
- A complete questions section for a landing page, with heading and support prompt: use the FAQ blocks
- Switching between views of the same space where exactly one is always shown: use the Tabs component
Agent notes
- Replace
itemswith your questions; keep eachvalueunique, sincedefaultValueopens items by it - The base twin takes
multipleand an arraydefaultValue; the radix twin takestype, anddefaultValueis a string only whentypeis single - A closed
AccordionContentships no text in the server HTML of either twin unless kept mounted, so crawlers without JS never read it
https://reui.io/components/accordion/c-accordion-1.mdget_example("c-accordion-1")npx shadcn@latest add @reui/c-accordion-1Shadcn Components in Accordion Single Expand
About Shadcn Accordion Single Expand
A basic single-expand accordion. Built with the Accordion component. A free, open source shadcn accordion example you can install with npx shadcn@latest add @reui/c-accordion-1 and edit as your own code.
What You Can Build With Shadcn Accordion Single Expand
- Composes Accordion, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-accordion-1
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Accordion Examples
- Plus Minus Icons Accordion with plus/minus indicators
- Bordered Rounded Accordion with borders and rounded corners
- In Card Accordion embedded within a Card
- Disabled Items Accordion with disabled items and highlighted state
- Icons & Badges Advanced accordion with custom icons and badges
- In Frame Accordion items integrated within Frame and FramePanel
- Nested Nested accordion example with bordered items
- User List User list accordion with avatars and role indicators
- Rotating Arrow Accordion with rotating arrow indicator
- Setup Steps Accordion component for onboarding or setup steps with icons, badges, and QR codes
Related Shadcn Component Categories
Open-source shadcn alert components for status messages, warning banners, and destructive notices.
Open-source shadcn alert dialog components for delete confirmations, destructive actions, and critical decisions.
Open-source shadcn aspect ratio components for responsive media, image galleries, and video previews.
Open-source shadcn attachment components for chat composers, upload states, and file previews.
Open-source shadcn autocomplete components for smart search, typeahead inputs, and suggestion lists.
Open-source shadcn avatar components for user profiles, team directories, and comment threads.
Frequently Asked Questions
When should I use Shadcn Accordion Single Expand?
Use it for the minimal pattern: 3 questions with one answer open at a time and the first open on load.
Shadcn Accordion as a whole fits:
- Help and FAQ sections where each question opens its own answer
- Settings, plans, product details and onboarding steps grouped into sections that expand on demand
- Lists of people or records that open to show detail, such as team members and roles
For several answers that can stay open at the same time, use the Accordion Plus Minus Icons example. For one block of extra content shown and hidden by a single trigger, use the Collapsible component. For a complete questions section for a landing page, with heading and support prompt, use the FAQ blocks. For switching between views of the same space where exactly one is always shown, use the Tabs component.
How do I install Shadcn Accordion Single Expand?
Is Shadcn Accordion Single Expand free to use?
Which components does Shadcn Accordion Single Expand use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.