latest version

Number

Number option type.

Config

Name Type Default Description
size string short""
Specify the input size.

There are 3 sizes:
- "short", for short input.
- "medium", for normal input.
- "large", for full width input.
spinner boolean true Choose to hide or show number in put spinner.
min number 0 Specifies the minimum value allowed.
max number 100 Specifies the maximum value allowed.
step number 1 Specifies the legal number intervals.
updateRate number 16
Provide the update rate of the option.
Useful for performance reasons to prevent unnecessary element renderings.

DefaultValue

Name Type Default Description
value number 0 Any number value.

Minimal Usage

{
  id: "posts",
  type: "number"
}

Usage

{
  label: "Posts number",
  id: "posts",
  type: "number",
  config: {
    size: "medium",
    min: "20",
    max: "400",
    step: "2",
    spinner: false,
  },
}