Initial commit

This commit is contained in:
2024-07-05 21:02:44 +02:00
commit 027d2c19ed
20 changed files with 9211 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import { Button } from "./button";
import { type Meta } from "@storybook/react";
const meta = {
component: Button,
title: "Components/Button",
tags: ["autodocs"],
} satisfies Meta<typeof Button>;
export default meta;
export const Default = {
args: {
children: "Default button",
},
};
export const AlertOnClick = {
args: {
children: "Alert!",
onClick: () => alert("Button clicked"),
},
};
export const ButtonAsLink = {
args: {
children: "This is a link",
as: "a",
href: "https://google.com",
target: "_blank",
},
};