mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-08-24 13:18:52 +00:00
f2eb91bc02
* Enabled recommended-requiring-type-checking * from .cjs to .js * check * check * check * check * A lot of types aligned and refactored * More strict types * Improvement * Improvements * Improvements * Fixed routs * Fixed import types
43 lines
762 B
TypeScript
43 lines
762 B
TypeScript
import type { Meta } from "@storybook/react-vite";
|
|
|
|
import { Button } from "./Button";
|
|
|
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
const meta = {
|
|
title: "Example/Button",
|
|
component: Button,
|
|
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
argTypes: {
|
|
backgroundColor: { control: "color" },
|
|
},
|
|
} satisfies Meta<typeof Button>;
|
|
|
|
export default meta;
|
|
|
|
export const Primary = {
|
|
args: {
|
|
primary: true,
|
|
label: "Button",
|
|
},
|
|
};
|
|
|
|
export const Secondary = {
|
|
args: {
|
|
label: "Button",
|
|
},
|
|
};
|
|
|
|
export const Large = {
|
|
args: {
|
|
size: "large",
|
|
label: "Button",
|
|
},
|
|
};
|
|
|
|
export const Small = {
|
|
args: {
|
|
size: "small",
|
|
label: "Button",
|
|
},
|
|
};
|