JSPM

@instructure/ui-number-input

7.3.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7326
  • Score
    100M100P100Q139896F
  • License MIT

A UI component library made by Instructure Inc.

Package Exports

  • @instructure/ui-number-input

Readme


category: packages

ui-number-input

npm  build-status  MIT License  Code of Conduct

A low-level controlled number input component that only handles rendering. All behavior (stepping, number parsing, localization, etc.) should be handled by a wrapper component.

Components

Installation

yarn add @instructure/ui-number-input

Usage

import React from 'react'
import { NumberInput } from '@instructure/ui-number-input'

const MyNumber = () => {
  return (
    <NumberInput
      label="..."
      onChange={...}
      onDecrement={...}
      onIncrement={...}
      value={...}
    />
  )
}

For detailed usage and documentation, see NumberInput examples.