mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
* fix: desprecated .storybook/main.ts and actions-addons * remove: ignore notation in storybook eslint and transition to actions function * remove: unnecessary eslint ignore code
28 lines
594 B
TypeScript
28 lines
594 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
import Button from "./Button";
|
|
|
|
const meta = {
|
|
/* 👇 The title prop is optional.
|
|
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
|
|
* to learn how to generate automatic titles
|
|
*/
|
|
title: "Button",
|
|
component: Button,
|
|
} satisfies Meta<typeof Button>;
|
|
|
|
export default meta;
|
|
|
|
export const Default: StoryObj<typeof Button> = {
|
|
args: {
|
|
children: (
|
|
<>
|
|
<span>↑</span>
|
|
<span>Update</span>
|
|
</>
|
|
),
|
|
},
|
|
argTypes: {
|
|
onClick: { action: "clicked" },
|
|
},
|
|
};
|