Develop ultra fast with Prismane 🎉

Accordion API

Learn about the Accordion component's props and CSS classes.

Import

import {
  AccordionProps,
  AccordionControlProps,
  AccordionIconProps,
  AccordionItemProps,
  AccordionPanelProps,
} from "@prismane/core";

Props

Accordion

Accordion extends Flex component's props.

NameTypeDescriptionDefault
defaultValuestringThe default value of the accordion.-

Accordion.Control

Accordion.Control extends Flex and Transition components' props.

Accordion.Icon

Accordion.Icon extends Flex component's props.

Accordion.Item

Accordion.Item extends Flex component's props.

NameTypeDescriptionDefault
valuestring / nullThe value of the accordion item.-

Accordion.Panel

Accordion.Panel extends Flex and Animation components' props.

CSS

Accordion

Accordion extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneAccordion-rootThe wrapper box of the accordion.

Accordion.Control

Accordion.Control extends Flex and Transition components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneAccordionControl-rootThe wrapper box of the accordion control.
root.PrismaneAccordionControl-root-activeThe wrapper box of the accordion control if the control is active.

Accordion.Icon

Accordion.Icon extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneAccordionIcon-rootThe wrapper box of the accordion icon.
root.PrismaneAccordionIcon-root-activeThe wrapper box of the accordion icon if the icon is active.

Accordion.Item

Accordion.Item extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneAccordionItem-rootThe wrapper box of the accordion item.

Accordion.Panel

Accordion.Panel extends Flex and Animation components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneAccordionPanel-rootThe wrapper box of the accordion panel.
root.PrismaneAccordionPanel-root-activeThe wrapper box of the accordion panel if the panel is active.