0.7.0 • Published 6 years ago
@pndr/number-input v0.7.0
NumberInput
Used for entering numbers.
Getting started
npm install @cmds/number-input --saveProp 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.