-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24240b1
commit 1f093cf
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import { Meta, StoryObj } from '@storybook/react' | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import Button from '../Button'; | ||
|
||
type ButtonStoryType = StoryObj<typeof Button> | ||
type ButtonStoryType = StoryObj<typeof Button>; | ||
|
||
export const Default: ButtonStoryType = { | ||
render: args => <Button {...args} />, | ||
args: { | ||
children: 'Button' | ||
} | ||
} | ||
children: 'Button', | ||
}, | ||
}; | ||
|
||
const meta: Meta<typeof Button> = { | ||
title: 'Buttons/Button', | ||
component: Button, | ||
parameters: { | ||
actions: { | ||
handles: ['click'] | ||
} | ||
} | ||
} | ||
handles: ['click'], | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta | ||
export default meta; |