storybook/docs/snippets/svelte/button-story-with-args.js.mdx
2021-06-18 17:34:13 +01:00

19 lines
306 B
Plaintext

```js
// Button.stories.js
import Button from './Button.svelte';
export default {
title: 'Components/Button',
component: Button,
}
const Template = (args) => ({ Component: Button, props: args });
export const Primary = Template.bind({});
Primary.args = {
primary: true,
label: 'Button',
};
```