refactor(ui): extract reusable component package
This commit is contained in:
parent
87261b5a3f
commit
2664804e91
86 changed files with 102 additions and 85 deletions
21
packages/ui/src/stories/TelemetryCard.stories.tsx
Normal file
21
packages/ui/src/stories/TelemetryCard.stories.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { TelemetryCard } from "../components/TelemetryCard";
|
||||
import { telemetryCards } from "./story-data";
|
||||
|
||||
const meta = {
|
||||
title: "UI/TelemetryCard",
|
||||
component: TelemetryCard,
|
||||
args: {
|
||||
card: telemetryCards.percent,
|
||||
},
|
||||
} satisfies Meta<typeof TelemetryCard>;
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Percent: Story = {};
|
||||
export const Danger: Story = {
|
||||
args: {
|
||||
card: telemetryCards.danger,
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue