Created
September 16, 2024 19:26
-
-
Save PCreations/cd9d01a569a3e00205437e26d47dd5cd to your computer and use it in GitHub Desktop.
a4a319fe4028.diff
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
-12,15 +12,17 @@ const meta = { | |
}, | |
argTypes: { | |
name: { control: 'color' }, | |
+ type: { control: 'text' }, | |
}, | |
-} satisfies Meta<{ name: string }>; | |
+} satisfies Meta<{ name: string; type: string }>; | |
export default meta; | |
-type Story = StoryObj<{ name: string }>; | |
+type Story = StoryObj<{ name: string; type: string }>; | |
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args | |
export const Primary: Story = { | |
args: { | |
name: 'Foo Bar', | |
+ type: 'submit', | |
}, | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment