storybook/docs/snippets/web-components/button-story-auto-docs.js.mdx
2023-01-05 14:53:03 +00:00

28 lines
426 B
Plaintext

```js
// Button.stories.js
export default {
title: 'Button',
component: 'custom-button',
//👇 Enables auto-generated documentation for the component story
tags: ['docsPage'],
argTypes: {
backgroundColor: { control: 'color' },
},
};
export const Primary = {
args: {
primary: true,
label: 'Button',
},
};
export const Secondary = {
args: {
...Primary.args,
primary: false,
},
};
```