Favorites

ARIA spinbutton Role

spinbutton
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The spinbutton role marks a control for choosing a number, which the user can type or step up and down with arrow buttons or keys. An input with type number has this role.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The spinbutton role identifies an input that lets the user pick a value from a range of discrete values, usually by typing it or by stepping it up and down. A quantity field is the classic example. Its current value is given by aria-valuenow, within aria-valuemin and aria-valuemax.

Keyboard users expect Up and Down to change the value by one step, Page Up and Page Down to change it by a larger step, and Home and End to jump to the limits. Increment and decrement buttons next to it are usually left out of the Tab order, since the keys already do the job.

The native <input type="number"> has this role. For numbers that aren't really quantities, such as card numbers or postcodes, use a plain text input with inputmode="numeric" instead.

Use the native HTML <input> element where you can: it already has the spinbutton role, with the expected keyboard and browser behavior built in.

Properties

Category
Widget
HTML equivalent
<input>
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Syntax

<element role="spinbutton">

Example

<label for="q">Quantity</label>
<input id="q" type="number" min="1" max="10" value="1">

Browser Support

The following information will show you the current browser support for the spinbutton ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee