NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsAccordion

Accordion

Collapsible content panels for organizing information.

PreviousCard
NextTabs
On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub

Accordions

A vertically stacked set of collapsible panels for organizing content.

When to use

FAQ sectionsDisplaying answers to complex or specific product questions without cluttering the main layout
compact forms / sidebar settingsGrouping complex sets of advanced configurations (e.g. SMTP config, SMTP logs)

Interactive Playground

Live CanvasInteractive

Controls(9)
type
select

Whether one or multiple items can be expanded

collapsible
boolean
Toggle state:

Allows all items to be closed (only for type='single')

variant
select

Visual style variant of the accordion

itemVariant
select

Visual style variant of the accordion items

iconType
select

Icon type used in the trigger

title1
text

Title of the first item

content1
text

Content of the first item

title2
text

Title of the second item

content2
text

Content of the second item

Generated JSX
Source
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "nexoreui"

<Accordion type="single" collapsible className="w-full">
  <AccordionItem value="item-1">
    <AccordionTrigger>Is it accessible?</AccordionTrigger>
    <AccordionContent>Yes. It adheres to the WAI-ARIA design pattern.</AccordionContent>
  </AccordionItem>
  <AccordionItem value="item-2">
    <AccordionTrigger>Is it styled?</AccordionTrigger>
    <AccordionContent>Yes. It comes with default styles that match the other components' aesthetic.</AccordionContent>
  </AccordionItem>
</Accordion>

Default Accordion

component.tsx
1

Multiple Accordion

component.tsx
1

Glass Accordion

component.tsx
1

Outline Accordion

component.tsx
1

Neon Accordion

component.tsx
1
Page 1 of 2

API Reference (Props)

PropTypeDefaultDescription
type*"single" | "multiple"—Whether one or multiple items can be expanded at the same time.
collapsiblebooleanfalseWhen type is 'single', allows expanding items to be collapsed.
variant"default" | "glass" | "outline" | "neon""default"Visual style variant of the accordion.
defaultValuestring | string[]—Value of the item(s) to expand by default.
valuestring | string[]—Controlled value of expanded item(s).
disabledbooleanfalsePrevents items from being toggled.

Accessibility (a11y)

  • Keyboard Controls: Supports standard keyboard controls. Pressing Enter or Space on a focused heading triggers expand/collapse.
  • ARIA attributes: Uses Radix UI Accordion wrapper, connecting triggers via aria-controls and mapping state via aria-expanded.