@sikt/sds-breadcrumbs
v2.0.2
Published
## Consume
Downloads
564
Readme
@sikt/sds-breadcrumbs
Consume
npm i -s @sikt/sds-breadcrumbs
React
import { Breadcrumbs, BreadcrumbItem } from "@sikt/sds-breadcrumbs";
import "@sikt/sds-breadcrumbs/dist/index.css";
import "@sikt/sds-icons/dist/index.css";
<Breadcrumbs aria-label="Navigasjonssti">
<BreadcrumbItem>
<a href="/1">Level 1</a>
</BreadcrumbItem>
<BreadcrumbItem>
<a href="/2" aria-current="page">
Level 2
</a>
</BreadcrumbItem>
</Breadcrumbs>;
Stylesheets & custom markup
Import stylesheet:
@import url("@sikt/sds-breadcrumbs");
Create custom markup:
<nav class="sds-breadcrumbs" aria-label="Navigasjonssti">
<ol class="sds-breadcrumbs__list">
<li class="sds-breadcrumbitem">
<a href="/1" class="sds-breadcrumb-item__link">Level 1</a>
</li>
<li class="sds-breadcrumbitem sds-breadcrumbitem--active">
<a href="/2" class="sds-breadcrumb-item__link" aria-current="page">
Level 2
</a>
</li>
</ol>
</nav>