storybook/docs/snippets/angular/button-story-click-handler-simplificated.ts.mdx
2023-01-16 20:19:05 +01:00

24 lines
492 B
Plaintext

```ts
// Button.stories.ts
import type { Meta, StoryObj } from '@storybook/angular';
import { Button } from './button.component';
const meta: Meta<Button> = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/angular/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
component: Button,
};
export default meta;
type Story = StoryObj<Button>;
export const Text: Story = {
args: {},
};
```