storybook/docs/snippets/angular/button-story-with-emojis.ts.mdx
2021-10-06 19:14:13 +01:00

39 lines
622 B
Plaintext

```ts
// Button.stories.ts
import { Button } from './button.component';
export default {
component: Button,
};
// The render function is a framework specific construct to define how the story should render
export const Primary = {
render: () => ({
props: {
label: 'Button',
backgroundColor: '#ff0',
},
}),
};
export const Secondary = {
render: () => ({
props: {
label: '😄👍😍💯',
backgroundColor: '#ff0',
},
}),
};
export const Tertiary = {
render: () => ({
props: {
label: '📚📕📈🤓',
backgroundColor: '#ff0',
},
}),
};
```