Files
helm-dashboard/frontend/src/components/Button.stories.tsx
kame 4c84b795a0 Removal of ignore notation in storybook eslint and transition to actions function (#489)
* fix: desprecated .storybook/main.ts and actions-addons

* remove: ignore notation in storybook eslint and transition to actions function

* remove: unnecessary eslint ignore code
2023-11-04 15:53:26 +00:00

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>&uarr;</span>
<span>Update</span>
</>
),
},
argTypes: {
onClick: { action: "clicked" },
},
};