Number Input

A number input component. Usually, this will be used as part of an ISLE dashboard, but it can also be used standalone. In this case, you want to handle changes via the onChange attribute.

Example:

<NumberInput
    legend="Number of observations"
    defaultValue={20}
    step={5}
/>

Options:

  • defaultValue: The value the slider is initialized with. Default: 0.
  • inline: boolean indicating whether the element should be displayed inline. Default: false.
  • legend: string to be displayed as the title of te component. Default: ''.
  • max: The maximum value of the slider. Default: 100.
  • min: The minimum value of the slider. Default: 0.
  • step: The step size of the slider. Default: 1.
  • onChange: Callback function invoked after each change of the slider value. Default: null.

results matching ""

    No results matching ""