Skip to content

Commit 77f8205

Browse files
authored
feat: added toast story (#83)
1 parent 2700496 commit 77f8205

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"homepage": "https://github.com/FIL1994/spectre-react-lib#readme",
2121
"scripts": {
2222
"build": "tsup --config tsup.config.ts",
23+
"dev": "pnpm storybook",
2324
"format": "prettier --cache -w .",
2425
"storybook": "storybook dev -p 6006",
2526
"build-storybook": "storybook build",

src/components/Toast.stories.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { Meta, StoryObj } from '@storybook/react';
2+
import { Toast } from './Toast';
3+
4+
const meta = {
5+
title: 'Toast',
6+
component: Toast,
7+
parameters: {},
8+
tags: ['autodocs'],
9+
argTypes: {},
10+
args: {},
11+
} satisfies Meta<typeof Toast>;
12+
13+
export default meta;
14+
type Story = StoryObj<typeof meta>;
15+
16+
export const Basic: Story = {
17+
args: {
18+
children: 'my toast',
19+
},
20+
};

0 commit comments

Comments
 (0)