mirror of
https://github.com/detleph/components.git
synced 2026-09-09 07:56:15 +02:00
Add components
+ Finished card + Button
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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",
|
||||
};
|
||||
Reference in New Issue
Block a user