@cmds/number-input
v0.3.0
Published
Used for entering numbers.
Downloads
9
Readme
NumberInput
Used for entering numbers.
Getting started
npm install @cmds/number-input --save
Prop Types
| Property | Type | Required? | Description |
|:---|:---|:---:|:---|
| id | String | | Unique identifier for the field |
| className | String | | Add a className to the input |
| value | String | | Number to be edited |
| allowNegative | Boolean | | Allows the user to enter a negative number. Default: false
|
| format | Format | | decimal
or integer
. Default: integer
|
| precision | Boolean | | 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
. Default: 2
|
| onChange | Function | | Triggers when the value changes: ({id: string, value: string})
|
More information
This component is designed and developed as part of Cosmos Design System.