Layout

Accordion

Collapsible numbered sections with smooth expand/collapse animation.

Settings-like (single open)
Visible to other users
Auto Update
?
Включено
Discord RPC
?
Active
Application ID
?
Show Album Art
?
Выключено
UI Opacity
?
0%100%
Font Size
10px24px
Accent Color
?
Debug Mode
?
Off
Multiple open
Visible to other users
Auto Update
?
Включено
Discord RPC
?
Active
Application ID
?
Show Album Art
?
Выключено
UI Opacity
?
0%100%
Font Size
10px24px
Accent Color
?
Without numbers, without divider
Visible to other users
Auto Update
?
Включено
Discord RPC
?
Active
Application ID
?
Show Album Art
?
Выключено
UI Opacity
?
0%100%
Font Size
10px24px
Accent Color
?
Usage
import { Accordion } from '@pulsesync/uikit'
import type { AccordionItem } from '@pulsesync/uikit'

const items: AccordionItem[] = [
  {
    key: 'general',
    title: 'General Settings',
    content: <div>General preferences…</div>,
  },
  {
    key: 'colors',
    title: 'Color Settings',
    content: <div>Accent colors, backgrounds…</div>,
  },
  {
    key: 'dev',
    title: 'Developer',
    content: <div>Debug options…</div>,
    disabled: true,
  },
]

/* Single open, numbered */
<Accordion
  items={items}
  defaultOpen={['general']}
  numbered
/>

/* Multiple open, no numbers */
<Accordion
  items={items}
  multiple
  numbered={false}
/>