shadcn's accordion shows one item at a time until you set multiple
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…
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.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.