21 lines
421 B
TypeScript
21 lines
421 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
import { Button } from "../index";
|
|
|
|
const meta = {
|
|
title: "UI/Button",
|
|
component: Button,
|
|
args: {
|
|
label: "Refresh",
|
|
icon: "mdi:refresh",
|
|
},
|
|
} satisfies Meta<typeof Button>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Primary: Story = {};
|
|
export const Secondary: Story = {
|
|
args: {
|
|
variant: "secondary",
|
|
},
|
|
};
|