import { storiesOf, html } from '@open-wc/demoing-storybook'; import { Required } from '@lion/validate'; import '../lion-input-amount.js'; storiesOf('Forms|Input Amount', module) .add( 'Default', () => html` `, ) .add( 'Negative number', () => html` `, ) .add( 'Set USD as currency', () => html` `, ) .add( 'Set JOD as currency', () => html` `, ) .add( 'Force locale to nl-NL', () => html` .formatOptions="${{ locale: 'nl-NL' }}" .modelValue=${123456.78} `, ) .add( 'Force locale to en-US', () => html` `, ) .add( 'Faulty prefilled', () => html` `, ) .add( 'Show no fractions', () => html`

Make sure to set the modelValue last as otherwise formatOptions will not be taken into account

`, );