Skip to content

Commit

Permalink
Add story for Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Feb 25, 2024
1 parent 9f17d78 commit b64a72b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions apps/docs/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { type Meta, type StoryObj } from "@storybook/react";
import Button, { type ButtonProps } from "@blog/Button";

const story: Meta<ButtonProps> = {
component: Button,
title: "Components/Button",
tags: ["autodocs"],
parameters: {
docs: {
description: {
component: "Allows for user interaction and can trigger specific actions",
},
},
},
};

export default story;

export const StringChildren: StoryObj<ButtonProps> = {
args: {
children: "Click me!",
disabled: false,
},
};

0 comments on commit b64a72b

Please sign in to comment.