0.1.1 • Published 4 years ago

@rock-kit/ui-number-input v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 @rock-kit/ui-number-input

Usage

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

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

For detailed usage and documentation, see NumberInput examples.