1.0.25 • Published 2 years ago

@sentre/antd-numeric-input v1.0.25

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

Antd Numeric Input

This package wraps InputNumber in Ant Design.

Installation

npm i antd @sentre/antd-numeric-input

Usage

import { useState } from 'react'
import NumericInput from '@sentre/antd-numeric-input'

const YourReactComponent = () => {
  const [value, setValue] = useState('')
  const max = '1000000000000'

  return <NumericInput value={value} onChange={setValue} ceiling={max} />
}

You can find details for props in https://ant.design/components/input-number/#API.