mirror of
https://github.com/ershisan99/ui-kit-int.git
synced 2025-12-16 12:34:05 +00:00
33 lines
566 B
TypeScript
33 lines
566 B
TypeScript
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",
|
|
},
|
|
};
|