import React from "react"; import { styled } from "../theme"; import WashingtonPostWhite from "@washingtonpost/wpds-assets/asset/washington-post-white"; import Menu from "@washingtonpost/wpds-assets/asset/menu"; import { Container } from "../container"; import { Box } from "../box"; import { Icon } from "../icon"; import Profile from "@washingtonpost/wpds-assets/asset/profile"; import { useDarkMode } from "storybook-dark-mode"; import WashingtonPost from "@washingtonpost/wpds-assets/asset/washington-post"; import type { Meta } from "@storybook/react"; import { AppBar as Component } from "."; export default { title: "App Bar", component: Component, argTypes: { position: { options: ["fixed", "sticky", "absolute", "relative"], defaultValue: "relative", }, shadow: { options: [true, false], control: "boolean", defaultValue: false, }, }, parameters: { layout: "fullscreen", }, } as Meta; const PrimaryNavigationExample = () => { const darkModeActive = useDarkMode(); return ( {darkModeActive ? ( ) : ( )} Democracy Dies in Darkness (This is an example using the new system) ); }; export const Play = { args: { shadow: true, position: "sticky", css: { top: 0, left: 0, }, children: , }, decorators: [ (Story) => ( ), ], name: "App Bar", }; const Decorator = styled("div", { display: "flex", flexDirection: "column", width: "100%", height: "calc(100vh * 3);", });