Skip to content

Commit 24e1dac

Browse files
[docs][Accordion] Update Anatomy section in Accordion docs (#44849)
1 parent e5b8020 commit 24e1dac

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/data/material/components/accordion/accordion.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,15 @@ The Accordion component then derives the necessary `aria-labelledby` and `id` fr
134134

135135
## Anatomy
136136

137-
The Accordion component is composed of a root `<div>` that houses interior elements like the Accordion Summary and other optional components (such as buttons or decorators).
137+
The Accordion component consists of a root `<div>` that contains the Accordion Summary, Accordion Details, and optional Accordion Actions for action buttons.
138138

139139
```jsx
140140
<div class="MuiAccordion-root">
141-
<div class="MuiButtonBase-root MuiAccordionSummary-root" role="button" aria-expanded="">
142-
<!-- Accordion header button goes here -->
143-
</div>
141+
<h3 class="MuiAccordion-heading">
142+
<button class="MuiButtonBase-root MuiAccordionSummary-root" aria-expanded="">
143+
<!-- Accordion summary goes here -->
144+
</button>
145+
</h3>
144146
<div class="MuiAccordion-region" role="region">
145147
<div class="MuiAccordionDetails-root">
146148
<!-- Accordion content goes here -->

0 commit comments

Comments
 (0)