Skip to content

Report a problem:

Problems can be reported via Microsoft Teams in your team channel within the "IT - Codey" team.

Please include the following information:

Report type:
Docs problem report a bug instead β†’
Path:
/latest/docs/components/general/accordions.html
Message:

DESCRIBE THE PROBLEM BEFORE SUBMITTING TO CODEY

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 ​

NameTypeDefaultRequiredDescription
accordionContentObject{ header: 'Header', panelText: 'Panel text'}falseThe accordion content (header and panel)
dataAutomationIdStringaccordionfalseThe data automation id.

Slots ​

NamePurpose
xer-accordion-headerThe accordion header
xer-accordion-panelThe accordion panel

INFO

When provided, the slots will overrule the accordionContent prop.

Automation Ids ​

INFO

The prefix accordion depends on the dataAutomationId prop.

NamePurpose
accordion-headerThe header element of the accordion.
accordion-panelThe 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";

Showcases ​

Default Data Accordion ​