Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.