Skip to content
Devix Open Source

Playground

Turn the options and watch it change. The code below changes with it, in whichever framework you are using — copy it and you have what is on the screen.

Live
import { createAmountInput } from '@devix-labs/amount-input';
import '@devix-labs/amount-input/styles.css';

createAmountInput(document.querySelector('#target'), {
  value: '1234.56',
  currency: 'AED',
  locale: 'en-AE',
  typing: 'free',
  showCurrency: false,
  grouping: true,
  allowNegative: false,
  accounting: false
});

Every option here is in the documentation, along with the ones that are not worth a control.