@sikt/sds-header
v5.0.1
Published
```sh npm i -s @sikt/sds-header ```
Keywords
Readme
@sikt/sds-header
Consume
npm i -s @sikt/sds-headerReact
Simple header
import { Header } from "@sikt/sds-header";
import "@sikt/sds-header/dist/index.css";
import "@sikt/sds-logo/dist/index.css";
<Header />;Header with product name
<Header logoText="Min produkt" />Header with link on logotype. Should have sds-typography-link class, but can otherwise be any framework link (like Link from next/link or react-router).
const logoText = "Min produkt";
<Header
logoText={logoText}
logoLink={<Link href="//path/to/my/product">{logoText}</Link>}
/>;Header with hamburger that can be positioned left leftSlot or right rigthSlot.
Children are positioned in the middle.
<Header leftSlot={<MyOwnHamburgerComponent />}>
Content positioned in the middle of the header
</Header>There is also a topSlot for adding an external menu above the header and a applicationStatus prop for adding a status below the header.
