Skip to content

Commit

Permalink
Merge pull request #13 from divriots/storybook7
Browse files Browse the repository at this point in the history
storybook 7 migration
  • Loading branch information
muryoh committed Feb 14, 2024
2 parents 3a4babd + 7f9fdb4 commit 5934ce3
Show file tree
Hide file tree
Showing 5 changed files with 15,630 additions and 18,593 deletions.
5 changes: 4 additions & 1 deletion button/stories/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default meta;

export const Playground: StoryObj<ButtonProps> = {
argTypes: {
children: { type: { name: 'string', required: true }, control: 'text', defaultValue: 'Button' },
children: { type: { name: 'string', required: true } },
variant: {
type: 'string',
control: 'radio',
Expand All @@ -32,6 +32,9 @@ export const Playground: StoryObj<ButtonProps> = {
},
loading: { type: 'boolean', control: 'boolean' },
},
args: {
children: 'Button',
},
parameters: {
s2d: {
variantProperties: [
Expand Down
4 changes: 3 additions & 1 deletion icon/stories/icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ export const Playground: StoryObj<IconProps> = {
type: { name: 'string', required: true },
control: 'select',
options: iconNames,
defaultValue: iconNames[0],
},
},
args: {
icon: iconNames[0]
},
parameters: {
s2d: {
variantProperties: ['icon'],
Expand Down
Loading

0 comments on commit 5934ce3

Please sign in to comment.