mirror of
https://github.com/detleph/components.git
synced 2026-09-04 00:26:01 +02:00
16 lines
403 B
TypeScript
16 lines
403 B
TypeScript
import React from "react";
|
|
|
|
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
|
|
import Button from "../components/button";
|
|
|
|
export default { title: "Button", component: Button } as ComponentMeta<typeof Button>;
|
|
|
|
const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />;
|
|
|
|
export const defaultButton = Template.bind({});
|
|
|
|
defaultButton.args = {
|
|
children: "Test",
|
|
};
|