import {
ChevronDownIcon,
ExternalLinkIcon,
MenuGridIcon,
} from "@navikt/aksel-icons";
import { BodyLong, BodyShort, Detail } from "@navikt/ds-react";
import { Meta } from "@storybook/react";
import React from "react";
import { Header, Dropdown } from "..";
export default {
title: "ds-react-internal/Header",
component: Header,
argTypes: {
user: {
control: {
type: "radio",
options: ["simple", "with description", "with dropdown"],
},
},
/* size: {
control: {
type: "radio",
options: ["medium", "small"],
},
}, */
},
} as Meta;
export const Default = {
render: (props) => {
return (
{props?.titleAsHeading ? (
Tittel
) : (
Tittel med lenke
)}
{props.systemMenu && (
A.Inntekt
Aa-registeret
Gosys
)}
{(!props.user || props.user === "simple") && (
)}
{props.user === "with description" && (
)}
{props.user === "with dropdown" && (
KH
Ola Normann 16px
Ident nr 14px
Enhet: Skien
Innstillinger
console.log("logg ut")}>
Logg ut
)}
);
},
args: {
titleAsHeading: false,
systemMenu: false,
},
};
export const TitleAsHeading = () => (
);
export const TitleAsLink = () => (
);
export const User = () => (
);
export const UserWithDescription = () => (
);
export const UserWithMenu = () => (
Tittel med lenke
KH
Ola Normann 16px
Ident nr 14px
Enhet: Skien
Innstillinger
console.log("logg ut")}>
Logg ut
);
export const UserWithMenuGridIconMenu = () => (
Tittel med lenke
A.Inntekt
Aa-registeret
Gosys
);