/* ! * (c) Copyright 2026 Palantir Technologies Inc. All rights reserved. */ import type { Meta, StoryObj } from "@storybook/react-vite"; import { Alignment } from "../../common"; import { Button } from "../button/buttons"; import { Navbar } from "./navbar"; import { NavbarDivider } from "./navbarDivider"; import { NavbarGroup } from "./navbarGroup"; import { NavbarHeading } from "./navbarHeading"; type NavbarStoryArgs = React.ComponentProps & { align: NonNullable["align"]>; }; const meta: Meta = { title: "Core/Navbar", component: Navbar, subcomponents: { NavbarGroup }, parameters: { layout: "padded", }, tags: ["autodocs"], args: { fixedToTop: false, align: Alignment.START, }, argTypes: { fixedToTop: { control: "boolean", table: { category: "Navbar" } }, align: { control: "select", options: Object.values(Alignment).filter(option => option !== "center"), description: "`NavbarGroup` alignment", table: { category: "NavbarGroup" }, }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { argTypes: { align: { table: { disable: true } }, }, render: args => ( Blueprint