Skip to main content

IAccordionProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IAccordionProps

Interface: IAccordionProps

Props accepted by Accordion.

Properties

Required

PropertyTypeDefaultDescription
titlestring-The text shown next to the chevron.

Options

PropertyTypeDefaultDescription
ariaLabel?string-ARIA label for accessibility.
defaultOpen?booleanfalseWhether the accordion starts in the open state. Ignored if staticMode is true
staticMode?booleanfalseWhether the accordion is seen as a section. No expand or collapse in this mode - Expanded by default.

Appearance & theming

PropertyTypeDefaultDescription
appearance?AppearanceModeAppearanceMode.lightVisual appearance mode - light or dark theme support
classes?IAccordionClassNames-CSS class name overrides for component elements.
className?string-Additional CSS class name for the root element.
style?CSSProperties-Inline styles for the root element.
tokens?IAccordionTokens-Design tokens for theming.