UNPKG

bulmil

Version:

![bulmil](https://user-images.githubusercontent.com/2362138/65766959-c721a080-e16f-11e9-9fb9-45a5a2ad0391.jpg)

42 lines (41 loc) 914 B
import { select, boolean } from '@storybook/addon-knobs'; import { html } from 'lit-html'; export default { title: 'Elements|Button', component: 'bm-button', }; // Knobs const sizes = { small: 'is-small', normal: 'is-normal', medium: 'is-medium', large: 'is-large', none: null, }; const colors = { primary: 'is-primary', link: 'is-link', info: 'is-info', success: 'is-success', danger: 'is-danger', warning: 'is-warning', white: 'is-white', light: 'is-light', dark: 'is-dark', black: 'is-black', text: 'is-text', none: null, }; export const Example = () => { return html ` <bm-section class="story-center"> <bm-button size=${select('Size', sizes, null)} color=${select('Color', colors, null)} disabled=${boolean('Disabled', false)} > Button </bm-button></bm-section > `; };