Skip to content

Commit

Permalink
HDS-3800 Add example of BackLink used in context to Showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinLBradley committed Sep 20, 2024
1 parent 25ac452 commit 4db2dcf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions showcase/app/templates/components/app-side-nav.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,25 @@
</SF.Item>
</Shw::Flex>
</SG.Item>

<SG.Item @label="With back link">
<div class="shw-component-sim-app-side-nav-root-container">
<Hds::AppSideNav @isResponsive={{false}}>
<:body>
<Hds::AppSideNav::List as |SNL|>
<SNL.BackLink @text="A “back” link" @href="#" />
<SNL.Title>A section title</SNL.Title>
<SNL.Link @text="A link with just text" @href="#" />
<SNL.Link @text="A link with an icon" @icon="network" @href="#" />
<SNL.Link @text="With a “count”" @icon="users" @count="12" @href="#" />
<SNL.Link @text="With a “badge” " @icon="credit-card" @badge="Beta" @href="#" />
<SNL.Link @text="With “sub items” indicator" @icon="settings" @hasSubItems={{true}} />
<SNL.Link @href="#" @isHrefExternal="true" @icon="guide" @text="As an “external” link" />
</Hds::AppSideNav::List>
</:body>
</Hds::AppSideNav>
</div>
</SG.Item>
</Shw::Grid>
</section>

Expand Down

0 comments on commit 4db2dcf

Please sign in to comment.