# NumberField \[react-aria-components\]

> A NumberField allows users to enter a number, and increment or decrement the value using stepper buttons or the keyboard.  Number fields can be built with <input type="number">, but the behavior is very inconsistent across browsers and platforms, it supports limited localized formatting options, and it is challenging to style the stepper buttons. NumberField helps achieve accessible number fields that support internationalized formatting options and can be styled as needed.

- Author: [James Shopland](https://21st.dev/@jolbol1)
- Library: [Jolly UI](https://21st.dev/@jolbol1/library/jolly-ui)
- License: mit
- Tags: Input, Number, React Aria
- npm dependencies: lucide-react, react-aria-components
- Live preview: https://21st.dev/@jolbol1/components/numberfield

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/jolbol1/numberfield?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/input.md
