Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlntv committed Apr 29, 2024
1 parent 7682d2c commit 313838a
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions vanilla/templates/docs/components/accordion/react/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,32 @@ The sidebar accordion, used in listing pages or as navigation, can hold multiple

## Default

<iframe
src="https://canonical.github.io/react-components/iframe.html?args=&id=accordion--default-story&viewMode=story"
width="800"
height="260"
></iframe>
<div>
<iframe
src="https://canonical.github.io/react-components/iframe.html?args=&id=accordion--default-story&viewMode=story"
width="800"
height="260"
/ >
</div>
## External state

The expanded accordion section can be controlled by external state.

<iframe
src="https://canonical.github.io/react-components/iframe.html?args=&id=accordion--external-state&viewMode=story"
width="800"
height="260"
></iframe>
<div>
<iframe
src="https://canonical.github.io/react-components/iframe.html?args=&id=accordion--external-state&viewMode=story"
width="800"
height="260"
/ >
</div>
## Headings

`titleElement` prop can be used to define heading element for section titles.

<iframe
src="https://canonical.github.io/react-components/iframe.html?args=&id=accordion--headings&viewMode=story"
width="800"
height="260"
></iframe>
<div>
<iframe
src="https://canonical.github.io/react-components/iframe.html?args=&id=accordion--headings&viewMode=story"
width="800"
height="260"
/ >
</div>

0 comments on commit 313838a

Please sign in to comment.