Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Default
The standard accordion component with single selection mode.
Our flagship product combines cutting-edge technology with sleek design. Manufactured from high-quality materials, it offers unparalleled performance and reliability.
The intuitive user interface is optimized for both beginners and experts.
We offer worldwide shipping via trusted courier partners. Standard delivery typically takes 3-5 business days.
- Free shipping on orders over $50
- Real-time shipment tracking
- Insured shipping
Multiple & Initially Opened
By using type="multiple", multiple items can be opened at the same time.
type="multiple", you can allow multiple items to be opened at the same time. The default mode is single. isOpened input and the openedChange output. Click the button below to toggle this item. Custom Styles
Apply custom Tailwind CSS classes to theme the accordion according to your design system.
Blue Theme
Success Style
Custom Icons
Replace the default icons with custom ones to match your application's visual style.
API Reference
Brain API
The brain directives provide the functional logic and state management for the accordion.
| Directive | Selector | Inputs / Outputs |
|---|---|---|
| BrnAccordion | [brnAccordion] |
|
| BrnAccordionItem | [brnAccordionItem] |
|
| BrnAccordionTrigger | [brnAccordionTrigger] | Functional trigger for expanding/collapsing items. |
| BrnAccordionContent | [brnAccordionContent] |
|
Helm API
The helm directives provide the default spartan/ui styling for the accordion.
| Component / Directive | Selector | Description |
|---|---|---|
| HlmAccordion | [hlmAccordion], hlm-accordion | Main container with flex layout. |
| HlmAccordionItem | [hlmAccordionItem], hlm-accordion-item | Individual item wrapper with bottom border. |
| HlmAccordionTrigger | [hlmAccordionTrigger] | Styled trigger button with hover and focus states. |
| HlmAccordionContent | hlm-accordion-content | Styled content area with smooth height animations. |
| HlmAccordionIcon | [hlmAccIcon] | Icon directive that handles rotation based on state. |