Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@gov.au/side-nav
Advanced tools
A vertical list of links for site navigation typically placed next to the body content.
A vertical list of links for site navigation typically placed next to the body content.
yarn add @gov.au/side-nav
npm install @gov.au/side-nav
Usage:
import AUsideNav from './side-nav.js';
<AUsideNav
dark
alt
linkComponent={ Link }
accordionHeader="In this section"
menuHeaderLink="#"
menuHeader="Lodging your tax return"
ariaLabel="side navigation"
items={[
{
link: 'one',
text: 'Change to route one',
active: true,
},
{
link: 'two',
text: 'Change to route two',
},
]}
/>
All props:
<AUaccordion
speed="250" {/* Speed of the animation in ms, optional */}
onOpen={ () => {} } {/* A function executed when the accordion opens, optional */}
afterOpen={ () => {} } {/* A function executed after the accordion opened, optional */}
onClose={ () => {} } {/* A function executed when the accordion closes, optional */}
afterClose={ () => {} } {/* A function executed after the accordion opened, optional */}
closed={ true } {/* Default state for accordion */}
dark={ false } {/* A dark variation of the component */}
alt={ false } {/* An alt variation of the component */}
accordionHeader="Header" {/* The accordion header */}
menuHeader="Tax return" {/* The menu title */}
menuHeaderLink="/tax" {/* The menu link */}
linkComponent="a" {/* The link component */}
items={} {/* The menu items, link locations and active state */}
>
Some content for this accordion.
</AUaccordion>
(💡 additional props are spread onto the component)
For more details have a look at the usage example.
side-nav
├─ core
├─ animate
├─ accordion
│ ├─ animate
│ └─ core
└─ link-list
├─ core
└─ body
└─ core
The visual test: https://auds.service.gov.au/packages/side-nav/tests/site/
Fragment
React importtext-decoration-skip
property to text-decoration-skip-ink
<button>
instead of <a>
for title)<a>
for accessibility<aside>
instead of <nav>
Copyright (c) Commonwealth of Australia. Licensed under MIT.
FAQs
A vertical list of links for site navigation typically placed next to the body content.
The npm package @gov.au/side-nav receives a total of 50 weekly downloads. As such, @gov.au/side-nav popularity was classified as not popular.
We found that @gov.au/side-nav demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.