import hbs from 'htmlbars-inline-precompile'; import { withKnobs, optionsKnob } from '@storybook/addon-knobs'; export default { title: 'Components/Stepper Input', decorators: [withKnobs], }; const variantKnob = () => optionsKnob( 'Variant', { Primary: 'is-primary', Info: 'is-info', Warning: 'is-warning', Danger: 'is-danger', }, 'is-primary', { display: 'inline-radio', }, 'variant-id' ); export let Standard = () => { return { template: hbs`
External Value: {{value}}
`, context: { min: 0, max: 10, value: 5, variant: variantKnob(), }, }; };