category: packages
ui-number-input
![Code of Conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)
This package contains the NumberInput
component. This is a low-level
controlled component that only handles rendering. All behavior (stepping, number
parsing, localization, etc.) should be handled by a wrapper component.
Installation
yarn add @instructure/ui-number-input
Usage
import React from 'react'
import NumberInput from '@instructure/ui-number-input'
export default function Example () {
return (
<NumberInput
label="..."
onChange={...}
onDecrement={...}
onIncrement={...}
value={...}
/>
)
}
See this working example for details.
License
MIT