feat(storybook): migrate stories to react
This commit is contained in:
parent
92a8990e7a
commit
76fe468df5
64 changed files with 590 additions and 685 deletions
23
src/lib/ui/stories/Panel.stories.tsx
Normal file
23
src/lib/ui/stories/Panel.stories.tsx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { Panel } from "../components/Panel";
|
||||
import { ServiceRow } from "../components/ServiceRow";
|
||||
import { serviceRows } from "./story-data";
|
||||
|
||||
const meta = {
|
||||
title: "UI/Panel",
|
||||
component: Panel,
|
||||
render: (args) => (
|
||||
<Panel {...args}>
|
||||
<ServiceRow service={serviceRows.normal} />
|
||||
<ServiceRow service={serviceRows.degraded} />
|
||||
</Panel>
|
||||
),
|
||||
args: {
|
||||
title: "Generic Panel",
|
||||
},
|
||||
} satisfies Meta<typeof Panel>;
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Dense: Story = {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue