mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 02:31:07 +08:00
28 lines
650 B
JavaScript
28 lines
650 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
export default {
|
|
title: 'welcome-banner',
|
|
};
|
|
|
|
export const basic = () => ({
|
|
template: hbs`
|
|
{{welcome-banner
|
|
backgroundColor=backgroundColor
|
|
titleColor=titleColor
|
|
subTitleColor=subTitleColor
|
|
title=title
|
|
subtitle=subtitle
|
|
click=(action onClick)
|
|
}}
|
|
`,
|
|
context: {
|
|
backgroundColor: '#FDF4E7',
|
|
titleColor: '#DF4D37',
|
|
subTitleColor: '#B8854F',
|
|
title: 'Welcome to storybook',
|
|
subtitle: 'This environment is completely editable',
|
|
onClick: action('clicked'),
|
|
},
|
|
});
|