Appearance
Accordions β
There are 3 types of accordions:
- Display Accordion
- Text Accordion
- Data Accordion
INFO
These components are partially adopted from PrimeVue. Its 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";
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. |
Slots β
Name | Purpose |
---|---|
xer-accordion-header | The accordion header |
xer-accordion-panel | The accordion panel |
INFO
When provided, the slots will overrule the accordionContent
prop.
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";