docs/_snippets/csf-3-example-render.md
// Other imports and story implementation
export const Basic: Story = {
render: (args) => ({
props: args,
}),
};
// Other imports and story implementation
export const Basic = {
render: (args) => <Button {...args} />,
};
// Other imports and story implementation
export const Basic: Story = {
render: (args) => <Button {...args} />,
};
// Other imports and story implementation
export const Basic = {
render: (args) => <Button {...args} />,
};
// Other imports and story implementation
export const Basic: Story = {
render: (args) => <Button {...args} />,
};
// Other imports and story implementation
export const Basic = {
render: (args) => ({
Component: Button,
props: args,
});
};
// Other imports and story implementation
export const Basic: Story = {
render: (args) => ({
Component: Button,
props: args,
}),
};
// Other imports and story implementation
export const Basic = {
render: (args) => ({
components: { Button },
setup() {
return { args };
},
template: '<Button v-bind="args" />',
}),
};
// Other imports and story implementation
export const Basic: Story = {
render: (args) => ({
components: { Button },
setup() {
return { args };
},
template: '<Button v-bind="args" />',
}),
};
// Other imports and story implementation
export const Basic = {
render: (args) => html`<demo-button label="Hello" @click=${action('clicked')}></demo-button>`,
};
// Other imports and story implementation
export const Basic: Story = {
render: (args) => html`<demo-button label="Hello" @click=${action('clicked')}></demo-button>`,
};