import {NavBar} from "ui"; import {ArgsTable, Canvas, Meta, Story} from "@storybook/addon-docs"; <Meta title="Components/Sections/NavBar/old" component={NavBar}/> export const Template = (args) => <NavBar {...args} />; # NavBar Description of a NavBar ## Props <ArgsTable story="Default"/> ## Examples <Canvas> <Story name="Default" args={{ noSession: true, links: [ { icon: "home", text: "Example", href: "https://www.spot-ship.com", removeHover: true, }, ], protectedLinks: [ { icon: "home", text: "Example", href: "https://www.spot-ship.com", removeHover: true, }, { icon: "globe", text: "Example thats only available when logged in", href: "https://www.spot-ship.com", removeHover: true, }, ], background: true, }} > {Template.bind({})} </Story> </Canvas>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter