File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 20
20
"homepage" : " https://github.com/FIL1994/spectre-react-lib#readme" ,
21
21
"scripts" : {
22
22
"build" : " tsup --config tsup.config.ts" ,
23
+ "dev" : " pnpm storybook" ,
23
24
"format" : " prettier --cache -w ." ,
24
25
"storybook" : " storybook dev -p 6006" ,
25
26
"build-storybook" : " storybook build" ,
Original file line number Diff line number Diff line change
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
+ } ;
You can’t perform that action at this time.
0 commit comments