category: packages
ui-number-input
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