NexoreUI
InstallationComponentsNexore MakeGitHub
GitHub
NexoreUIv0.1.2

Getting Started

Installation

Components

ButtonInputCardBadgeAlertAvatarAccordionModal / DialogTooltipTabsProgressSkeletonSliderSwitchRatingCommandTableStepperScroll AreaFile UploadNavigationIconsDock

Pro

ChartsData DisplayDark Mode ToolkitCommerceCookie ConsentSocialPremium EffectsLoaders

Animated

MarqueeNumber TickerAnimated NumberTyping AnimationBlur FadeBox RevealFile Preview CardImage Compare
MIT License
DocsAccordion

Accordion

Collapsible content panels for organizing information.

Next ComponentModal / Dialog

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

Accordion Playground
nexoreui
Live Preview

Props Panel
select

Whether one or multiple items can be expanded

boolean

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

select

Visual style variant of the accordion

select

Visual style variant of the accordion items

select

Icon type used in the trigger

text

Title of the first item

text

Content of the first item

text

Title of the second item

text

Content of the second item

Generated Code
Open in GitHub
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

Multiple Accordion

component.tsx

Glass Accordion

component.tsx

Outline Accordion

component.tsx

Neon Accordion

component.tsx
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.