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