Skip to main content
Version: 1.0.5

IAccordionProps

@spartanfx/react v1.0.5


@spartanfx/react / IAccordionProps

Interface: IAccordionProps

Props accepted by Accordion.

Properties

PropertyTypeDefault valueDescription
appearance?AppearanceModeAppearanceMode.lightVisual appearance mode - light or dark theme support
ariaLabel?stringundefinedARIA label for accessibility.
classes?IAccordionClassNamesundefinedCSS class name overrides for component elements.
className?stringundefinedAdditional CSS class name for the root element.
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.
style?CSSPropertiesundefinedInline styles for the root element.
titlestringundefinedThe text shown next to the chevron.
tokens?IAccordionTokensundefinedDesign tokens for theming.