Accordions β
There are 3 types of accordions:
- Display Accordion
- Text Accordion
- Data Accordion
INFO
This component are partially adopted from PrimeVue. It's full documentation can be found here. In case there are missing features of the XerAccordion
component, please contact the Codey team.
Display Accordion β
The display accordion is a simple accordion that can be used to display extra information.
javascript
import { XerDisplayAccordion } from "@xerius/codey-components";
TODO
Convert to PrimeVue based Accordion
Showcases β
With Content Object β
With Slots β
With Slots Custom Html β
Props β
Name | Type | Default | Required | Description |
---|---|---|---|---|
accordionContent | Object | { header: 'Header', panelText: 'Panel text'} | false | The accordion content, header and panel |
dataAutomationId | String | accordion | false | The data automation id. |
Automation Ids β
INFO
The prefix accordion
depends on the dataAutomationId
prop.
Name | Purpose |
---|---|
accordion-header | The header element of the accordion. |
accordion-panel | The panel holding the content. |
Text Accordion β
The text accordion is intended to give more pure text information about different topics.
javascript
import { XerTextAccordion, XerAccordionTab } from "@xerius/codey-components";
Showcases β
Default Text Accordion β
Data Accordion β
The data accordion is intended for data display and. A row template XerDataAccordionContentRow
is provided to display data within the XerAccordionTab
.
javascript
import {
XerDataAccordion,
XerAccordionTab,
XerDataAccordionContentRow,
} from "@xerius/codey-components";