import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { Button } from '@storybook/angular/demo';
This Button
document defines a few stories:
{{
component: Button,
props: {
text: 'Hello Button',
},
}}
{{
component: Button,
props: {
text: '😀 😎 👍 💯',
},
}}
{{
component: Button,
props: {
text: '😀 😎 👍 💯',
onClick: action('This was clicked OMG'),
},
}}
{{
component: Button,
props: {
text: 'Go to Welcome Story',
onClick: linkTo('Welcome'),
},
}}