UNPKG

bulmil

Version:

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

45 lines (44 loc) 1.32 kB
import { boolean, text, select } from '@storybook/addon-knobs'; import { html } from 'lit-html'; export default { title: 'Form|Select', component: 'bm-select', }; export const Example = () => { return html ` <bm-section class="story-center"> <bm-field> <bm-select state="${select('State', { 'is-hovered': 'is-hovered', 'is-focused': 'is-focused', 'Not set': null, }, null)}" size="${select('Size', { 'is-small': 'is-small', 'is-normal': 'is-normal', 'is-medium': 'is-medium', 'is-large': 'is-large', 'Not set': null, }, null)}" color="${select('Color', { 'is-primary': 'is-primary', 'is-info': 'is-info', 'is-success': 'is-success', 'is-warning': 'is-warning', 'is-danger': 'is-danger', 'Not set': null, }, null)}" is-rounded="${boolean('Rounded', false)}" is-loading="${boolean('Loading', false)}" is-multiple="${boolean('Multiple', false)}" icon="${text('Icon', '')}" value="${text('Value', '')}" > <option value="dropdown">Select dropdown</option> <option value="options">With options</option> </bm-select> </bm-field> </bm-section> `; };