storybook/docs/snippets/angular/button-story-click-handler.ts.mdx
2021-09-03 23:31:04 +01:00

21 lines
299 B
Plaintext

```ts
// Button.stories.ts
import { Button } from './button.component';
import { action } from '@storybook/addon-actions';
export default {
component: Button,
};
export const Text = {
render: () => ({
props: {
label: 'Button',
onClick: action('clicked'),
},
}),
};
```