Skip to content

Commit

Permalink
docs: #1351 add customizing the header tag to the Accordion page
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Jul 7, 2024
1 parent e8cec5a commit 6d5352c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/docs/components/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ Accordions can be nested. All of the mentioned options are supported.
</Accordion>
```

## Changing Header tag
## Customizing the Header tag

The default tag for the header is `h2`. Use the `tag` props to change the header `tag`.
The default HTML element used for the header is an `h2` tag. You can customize this by providing a `tag` prop to `AccordionItem` component.

```svelte example
<script>
Expand Down

0 comments on commit 6d5352c

Please sign in to comment.