Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@chakra-xui/number-input

chakra-xui26MIT1.0.3TypeScript support: included

An accessible numeric input alternative to <input type='number' />

theme, theming, chakra xui, accessible, input, input number, numeric input, stepper input, input, number, spinner, spin button

readme

@chakra-xui/number-input

The NumberInput component is similar to the Input, but it has controls for incrementing or decrementing numeric values.

It follows the WAI-ARIA authoring practices for the Spinbutton widget.

Installation

yarn add @chakra-xui/number-input

# or

npm i @chakra-xui/number-input

Import components

import {
  NumberInput,
  NumberInputField,
  NumberInputStepper,
  NumberIncrementStepper,
  NumberDecrementStepper,
} from "@chakra-xui/react"

Usage

// TO DO

changelog

Change Log

1.0.3

Patch Changes

1.0.2

Patch Changes

  • e1b095cd #2217 Thanks @silltho! - feat(number-input): uses props of wrapping form-control

    This change enables NumberInput to automatically derive various values from a surrounding FormControl if found, similar to Input and Select.

  • Updated dependencies [ff10bcec]:

1.0.1

Patch Changes

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0 (2020-11-13)

Note: Version bump only for package @chakra-xui/number-input

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.8 (2020-10-29)

Bug Fixes

  • toast: allow custom render in update (eb8bff9), closes #2362

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.7 (2020-10-25)

Note: Version bump only for package @chakra-xui/number-input

1.0.0-rc.6 (2020-10-25)

Note: Version bump only for package @chakra-xui/number-input

1.0.0-rc.5 (2020-09-27)

Note: Version bump only for package @chakra-xui/number-input

1.0.0-rc.4 (2020-09-25)

Note: Version bump only for package @chakra-xui/number-input

1.0.0-rc.3 (2020-08-30)

Note: Version bump only for package @chakra-xui/number-input

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.2 (2020-08-09)

Note: Version bump only for package @chakra-xui/number-input

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.1 (2020-08-06)

Bug Fixes

  • stack key issue and yarn2 deps issue (d6cb6b8)

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.0 (2020-07-26)

Note: Version bump only for package @chakra-xui/number-input

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.7 (2020-07-26)

Note: Version bump only for package @chakra-xui/number-input

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.6 (2020-07-15)

Note: Version bump only for package @chakra-xui/number-input

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.5 (2020-07-15)

Bug Fixes

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.4 (2020-07-01)

Bug Fixes

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.3 (2020-06-28)

Bug Fixes

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.2 (2020-06-21)

Bug Fixes