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` `, ) .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

You can copy paste and it will become 4000 independent of your locale.
If you write 4000,0 manually then it will become 4000 or 40000 dependent on your locale.

`, );