storybook/docs/snippets/web-components/button-story-primary-long-name.ts.mdx
Kyle Gach b97d94e005 Address feedback
- Newline following filename comment
- Fix URLs in comments
- Ensure consistent usage of `ts` vs `tsx` language
2023-01-12 14:17:39 -07:00

28 lines
431 B
Plaintext

```ts
// Button.stories.ts
import type { Meta, StoryObj } from '@storybook/web-components';
const meta: Meta = {
title: 'Button',
component: 'demo-button',
};
export default meta;
type Story = StoryObj;
export const Primary: Story = {
args: {
primary: true,
label: 'Button',
},
};
export const PrimaryLongName: Story = {
args: {
...Primary.args,
label: 'Primary with a really long name',
},
};
```