Optional
badgeThe content to be displayed when the accordion is expanded.
Optional
classOptional CSS class name.
Optional
customUsed for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".
Optional
defaultIf true, expands the accordion by default when the component mounts. Only controls the initial state - subsequent expand/collapse actions will be handled by user interaction. Use this for uncontrolled behavior where you just want to set the initial state.
Optional
disabledIf true, the component is disabled.
Optional
expandedControls the expanded state of the accordion.
Use this prop along with onChange
to create a controlled component where you need to manage the state yourself.
If not provided, the accordion will be uncontrolled and manage its own state internally.
A unique identifier for the <Accordion>
.
This is required to correctly associate <AccordionSummary>
with <AccordionDetails>
via WAI-ARIA attributes, ensuring proper accessibility for screen readers.
Optional
isIf true, a loading skeleton will be rendered instead of the component's content and all interactions will be disabled.
Optional
langLanguage used for internal translations.
Optional
negativeIf true, applies negative horizontal margins.
Optional
onCallback when accordion is changed.
Optional
onCallback when the item is clicked.
Optional
slotsSlots for meta and startAdornment.
Optional
subtitleSubtitle text in the AccordionSummary.
Optional
sxThe system prop that allows defining system overrides as well as additional CSS styles.
Main title text in the AccordionSummary.
Optional
titleComponent used for the title, defaults to h2
.
Optional
titleFont weight of the title text.
Optional
titleVariant of the title text.
Optional
unmountDetermines if the child components should be unmounted when the accordion collapses. If true, the children are removed from the DOM when the accordion is not expanded. Defaults to false, keeping the children in the DOM but hidden.
Badge to be displayed in the accordion summary.