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