Skip to content

Commit

Permalink
docs: add example with NavList.Group
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed May 28, 2024
1 parent 2b22017 commit 4db01f2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/react/src/NavList/NavList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,26 @@ export const WithInactiveItems: Story = () => (
</PageLayout>
)

export const WithGroup = () => (
<PageLayout>
<PageLayout.Pane position="start">
<NavList>
<NavList.Group title="Group 1">
<NavList.Item aria-current="true" href="#">
Item 1A
</NavList.Item>
<NavList.Item href="#">Item 1B</NavList.Item>
<NavList.Item href="#">Item 1C</NavList.Item>
</NavList.Group>
<NavList.Group title="Group 2">
<NavList.Item href="#">Item 2A</NavList.Item>
<NavList.Item href="#">Item 2B</NavList.Item>
<NavList.Item href="#">Item 2C</NavList.Item>
</NavList.Group>
</NavList>
</PageLayout.Pane>
<PageLayout.Content></PageLayout.Content>
</PageLayout>
)

export default meta

0 comments on commit 4db01f2

Please sign in to comment.