Oros UI

Search documentation

Search Oros UI pages and components.

Accordion

Organizes related content into collapsible sections.

Installation

Install Accordion from Oros with shadcn CLI 4.13.0.

pnpm dlx shadcn@4.13.0 add @oros/accordion

Usage

import {
  Accordion,
  AccordionItem,
  AccordionTrigger,
  AccordionContent,
} from "@/components/ui/accordion"

Open the Source tab in the preview for a complete working example.

Anatomy

ExportResponsibility
AccordionThe root component that owns the primary structure and state.
AccordionItemRepresents one option or repeated child.
AccordionTriggerControls opening, selection, or disclosure behavior.
AccordionContentContains the primary visible content.

API Reference

Accordion exports 4 named entries. Component exports accept the props of their underlying HTML element or Base UI component, plus an optional className, unless the source defines a more focused type.

  • Accordion Component
  • AccordionItem Component
  • AccordionTrigger Component
  • AccordionContent Component

Accessibility

  • Preserve the native and Base UI keyboard model when composing Accordion; do not replace semantic links or controls with click-only elements.
  • Use concise accessible names, expose the current item when applicable, and verify focus order at both mobile and desktop widths.

Source

Accordion uses the standard shadcn API and is distributed through Oros. Installing it adds the component source and required dependencies to your app. The Source tab above shows a complete usage example.