{
  "id": 14086948,
  "title": "shadcn's accordion shows one item at a time until you set multiple",
  "url": "https://urgent.news/2026/10/13/shadcns-accordion-shows-one-item-at-a-time-until-you-set-multiple",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-13T01:31:19.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/davekurian/shadcns-accordion-shows-one-item-at-a-time-until-you-set-multiple-1n3g"
  },
  "original_language": "en",
  "account": "The shadcn accordion component displays one item at a time by default. To display multiple items simultaneously, the `multiple` prop must be set. This prop allows users to open and view several items simultaneously, rather than just one as is the default behavior. The component is designed to guide users through a series of vertically stacked, interactive headings that reveal sections of content when expanded.",
  "summary": "A single-open accordion makes readers close one answer before they can read the next. The shadcn basic example works that way, and a multiple prop changes it. The choice is about how your readers move through the answers, not about the component itself. What the shadcn page covers The page describes the component as \"A vertically stacked set of interactive headings that each reveal a section of…",
  "key_points": [
    "shadcn accordion displays one item at a time by default",
    "multiple prop enables viewing multiple items simultaneously",
    "prop allows users to open and view several items together"
  ],
  "editors_take": "The default single-item display prioritizes focused content consumption while the optional multiple setting offers developers greater flexibility for managing dense information within vertically stacked interactive headings.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}