Package Exports
- @instructure/ui-number-input
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@instructure/ui-number-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-inputUsage
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.