codex-marketplace-ui-compon.../stories/AppBar.stories.tsx

25 lines
614 B
TypeScript
Raw Permalink Normal View History

2024-08-23 13:31:37 +00:00
import type { Meta, StoryObj } from "@storybook/react";
import { AppBar } from "../src/components/AppBar/AppBar";
import { fn } from "@storybook/test";
import { NetworkIndicator } from "../src/components/NetworkIndicator/NetworkIndicator";
const meta = {
title: "Components/AppBar",
component: AppBar,
parameters: {
layout: "fullwidth",
},
tags: ["autodocs"],
argTypes: {},
} satisfies Meta<typeof AppBar>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
onExpand: fn(),
Right: <NetworkIndicator online={true} text="Online" />,
},
};