Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Installation
npx nx g @spartan-ng/cli:ui accordion
ng g @spartan-ng/cli:ui accordion
Usage
Brain API
BrnAccordionContentComponent
Selector: brn-accordion-content
BrnAccordionItemDirective
Selector: [brnAccordionItem]
Inputs
BrnAccordionTriggerDirective
Selector: [brnAccordionTrigger]
BrnAccordionDirective
Selector: [brnAccordion]
Inputs
Helm API
HlmAccordionContentComponent
Selector: hlm-accordion-content
Inputs
HlmAccordionIconDirective
Selector: hlm-icon[hlmAccordionIcon], hlm-icon[hlmAccIcon]
Inputs
HlmAccordionItemDirective
Selector: [hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item
Inputs
HlmAccordionTriggerDirective
Selector: [hlmAccordionTrigger]
Inputs
HlmAccordionDirective
Selector: [hlmAccordion], hlm-accordion
Inputs
Examples
Multiple and Opened
The type
input can be set to 'multiple' to allow multiple items to be opened at the same time.
The isOpened
input can be used to set the initial state of an accordion item.