RoadieRoadie
  • Home
  • Brand
  • Foundations
  • Content
  • Tokens
  • Components
  • Charts
  • Widgets
  • Appearance
HomeBrandFoundations
Appearance

Components

  • Navigation

    • Breadcrumb
    • LinkBeta
    • NavigatorAlpha
    • Steps
    • Tabs
  • Layout

    • Accordion
    • CollapsibleBeta
    • PaneAlpha
    • ScrollArea
    • Separator
  • Actions

    • Button
    • IconButton
    • ToggleBeta
    • Toggle groupBeta
    • ToolbarBeta
  • Fields

    • EditorAlpha
    • Field
    • Fieldset
    • Input
    • Label
    • Number fieldBeta
    • OTP fieldBeta
    • Query fieldAlpha
    • Textarea
  • Choices

    • Autocomplete
    • CheckboxBeta
    • Combobox
    • Radio group
    • Select
    • SliderBeta
    • SwitchBeta
  • Date and time

    • CalendarBeta
    • CalendarTile
    • Countdown
    • Dashboard periodBeta
    • Date fieldBeta
    • Date pickerBeta
    • Date range pickerBeta
    • DateTime
    • Duration
    • Time fieldBeta
  • Collections

    • Card
    • Carousel
    • DataTableBeta
    • ListAlpha
    • Marquee
    • RecordGridAlpha
    • RecordTableAlpha
    • SortableAlpha
    • TableBeta
  • Overlays

    • Dialog
    • Drawer
    • MenuBeta
    • Popover
    • ToastBeta
    • Tooltip
  • Status

    • Badge
    • CalloutBeta
    • DeltaBeta
    • Empty state
    • MeterBeta
    • ProgressBeta
    • SkeletonBeta
    • SparklineBeta
    • StatTileBeta
  • Media & brand

    • AvatarBeta
    • Icon Tile
    • Image
    • Logo
    • PatternBeta
    • QR codeBeta
    • SpotIllustration
  • Text

    • Code
    • Highlight
    • KbdBeta
    • Mark
    • Prose

Accordion

Status
Stable
Added
Components 2.0.08 Apr 2026
Updated
Components 2.17.024 Oct 2026
Docs updated
19 Oct 2026

Vertically stacked collapsible content sections built on native <details>/<summary> elements with CSS-animated expand/collapse.

For a single panel, such as the rest of a ticket list or extra filters, use Collapsible.

Import

import { Accordion } from '@oztix/roadie-components/accordion'

Examples

Default

Only one item can be open at a time in single mode (the default).

<Accordion>
<Accordion.Item>
<Accordion.Trigger>What is Roadie?</Accordion.Trigger>
<Accordion.Content>
<p>Roadie is a comprehensive design system built for Oztix applications. It provides CSS design tokens, a React component library, and documentation to help teams build consistent, accessible user interfaces across products.</p>
</Accordion.Content>

Emphasis

Use the emphasis prop to control the visual weight of the accordion.

{/* Normal */}
<Accordion emphasis='normal'>
<Accordion.Item>
<Accordion.Trigger>First question</Accordion.Trigger>
<Accordion.Content>
<p>Answer to the first question.</p>

Intents

Set the color context with the intent prop.

<Accordion intent='accent'>
<Accordion.Item>
<Accordion.Trigger>Accent intent</Accordion.Trigger>
<Accordion.Content>
<p>This accordion uses the accent color palette.</p>
</Accordion.Content>

States

Use type='multiple' to allow multiple items open simultaneously.

{/* Single (default) */}
<Accordion type='single'>
<Accordion.Item>
<Accordion.Trigger>Section A</Accordion.Trigger>
<Accordion.Content>
<p>Content for section A.</p>

Composition

Accordion is a compound component with Accordion.Item, Accordion.Trigger, and Accordion.Content.

<Accordion>
<Accordion.Item>
<Accordion.Trigger>What is Roadie?</Accordion.Trigger>
<Accordion.Content>
<p>Roadie is a comprehensive design system for building consistent user interfaces.</p>
</Accordion.Content>

Accessibility

  • Keyboard: Enter or Space toggles an item. Native <details>/<summary> elements provide built-in keyboard support.
  • ARIA: Each summary is focusable by default. The browser manages aria-expanded state natively.
  • Screen readers: Announce open/closed state automatically via the native disclosure pattern.

API reference

Accordion

intent"neutral" | "brand" | "brand-secondary" | "brand-blue" | "brand-orange" | "brand-purple" | "accent" | "danger" | "success" | "warning" | "info" | null
emphasis"normal" | "subtle" | "subtler" | null
type"single" | "multiple"

Accordion.Content

No additional props. It forwards all standard HTML attributes to the underlying element.

Accordion.Item

No additional props. It forwards all standard HTML attributes to the underlying element.

Accordion.Trigger

No additional props. It forwards all standard HTML attributes to the underlying element.

Previous page← TabsNext pageCollapsible →