docs/_snippets/csf-2-example-story.md
// Other imports and story implementation
export const Basic: Story = (args) => ({
props: args,
});
// Other imports and story implementation
export const Basic = (args) => <Button {...args} />;
// Other imports and story implementation
export const Basic: ComponentStory<typeof Button> = (args) => <Button {...args} />;
// Other imports and story implementation
export const Basic = (args) => <Button {...args} />;
// Other imports and story implementation
export const Basic: ComponentStory<typeof Button> = (args) => <Button {...args} />;
// Other imports and story implementation
export const Basic = (args) => ({
Component: Button,
props: args,
});
// Other imports and story implementation
export const Basic: StoryFn<typeof Button> = (args) => ({
Component: Button,
props: args,
});
// Other imports and story implementation
export const Basic = (args) => ({
components: { Button },
setup() {
return { args };
},
template: '<Button v-bind="args" />',
});
// Other imports and story implementation
export const Basic: StoryFn<typeof Button> = (args) => ({
components: { Button },
setup() {
return { args };
},
template: '<Button v-bind="args" />',
});
// Other imports and story implementation
export const Basic = ({ primary, size, label }) =>
html`<custom-button ?primary=${primary} size=${size} label=${label}></custom-button>`;
// Other imports and story implementation
export const Basic: Story = ({ primary, backgroundColor, size, label }) =>
html`<custom-button ?primary=${primary} size=${size} label=${label}></custom-button>`;