
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@ds-kit/breadcrumbs
Advanced tools
title: "Breadcrumbs" slug: "/packages/breadcrumbs" category: "control" componentNames:
Breadcrumbs can be used to show users where they are within the datastory page hierarchy.
import Breadcrumbs from "@ds-kit/breadcrumbs"
The most basic breadcrumbs component returns a nav
with aria-label="Breadcrumbs"
and an ordered list of navigation items. For each item the component renders a link. The last item has an aria-current="page"
attribute.
<Breadcrumbs
links={[
{ key: 1, href: "/", label: "Home" },
{ key: 2, href: "/patterns", label: "Patterns" },
{ key: 3, href: "/patterns/blog-post", label: "Blog post pattern" },
]}
/>
To use the breadcrumbs component with a framework like next.js or gatsby, you can use the link
prop to hook up a custom link component.
<Breadcrumbs
links={[
{ href: "/", label: "Home" },
{ href: "/patterns", label: "Patterns" },
{ href: "/patterns/blog-post", label: "Blog post pattern" },
]}
link={({ label, href }) =>
<a href={href}>{label}</a>
}
/>
FAQs
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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.