Skip to contents
Interfaces DS
Landing Page

Accordion

Compare single and multiple accordions, collapsible behavior, and how disabled items appear.

On this page

Usage

We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.

Examples

Single · Collapsible

We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.

Single · Flush

We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.

Multiple · Expanded

We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.

Returns accepted within 30 days. Items must be unused and in original packaging. Refunds processed within 5-7 business days.

Single · Disabled Item

We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.

Installation

  1. Set up your license key before connecting the private registry.

    Connect this project to https://docs.interfacesds.com using the full URL shown below, including {name}. In components.json, add the registries field at the top level. If the field already exists, add only the @interfaces-ds entry inside it. Keep your existing aliases and other registries.

    For a global stylesheet in app/ or src/app/.

    JSON
    {
      "registries": {
        "@interfaces-ds": {
          "url": "https://docs.interfacesds.com/r/{name}.json",
          "headers": {
            "Authorization": "Bearer ${INTERFACES_DS_LICENSE_KEY}"
          }
        }
      }
    }
  2. Install the component.

    Terminal
    npx shadcn@latest add @interfaces-ds/accordion

API reference

Import these exports from @/components/ui/accordion. The tables cover component-specific props and common controls.

Accordion
PropTypeDefault
asChildboolean—
collapsibleboolean—
defaultValuestring | string[]—
disabledboolean—
multipleboolean—
type"multiple" | "single"—
valuestring | string[]—
AccordionItem
PropTypeDefault
asChildboolean—
disabledboolean—
onOpenChange(open: boolean, eventDetails: AccordionPrimitive.Item.ChangeEventDetails) => void—
AccordionTrigger
PropTypeDefault
asChildboolean—
disabledboolean—
namestring—
type"button" | "submit" | "reset"—
valuestring | number | readonly string[]—
AccordionContent
PropTypeDefault
asChildboolean—