Skip to content

Instantly share code, notes, and snippets.

@PCreations
Created September 16, 2024 19:26
Show Gist options
  • Save PCreations/cd9d01a569a3e00205437e26d47dd5cd to your computer and use it in GitHub Desktop.
Save PCreations/cd9d01a569a3e00205437e26d47dd5cd to your computer and use it in GitHub Desktop.
a4a319fe4028.diff
-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