@cmds/number-input

0.3.0 • Public • Published

NumberInput

npm package

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.

Readme

Keywords

Package Sidebar

Install

npm i @cmds/number-input

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

21 kB

Total Files

9

Last publish

Collaborators

  • entercosmos