Skip to content

Commit

Permalink
button example to site
Browse files Browse the repository at this point in the history
  • Loading branch information
Fercas123 committed Oct 4, 2024
1 parent 67c5dc3 commit 4bd82ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site/docs/components/static-list/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ For complex labels, you can add additional elements to provide further context o

</LivePreview>

<LivePreview componentName="static-list" exampleName="WithButtons" >

## With buttons

You can use [`Button`](/salt/components/button) to add actions to the `StaticListItem`s.

**Note:** Buttons should be associated to the list item content using `aria-label` or `aria-labelledby`.

</LivePreview>

<LivePreview componentName="static-list" exampleName="WithDividers" >

## With dividers
Expand Down

0 comments on commit 4bd82ce

Please sign in to comment.