Skip to content

Find what you need, instantly

Search components, ARIA roles & attributes, and WCAG criteria.

All roles

textbox

Widget role

A region where the user can enter and edit free-form text, single- or multi-line (see aria-multiline). It supports states like aria-required, aria-readonly, and aria-invalid. Prefer a native `<input type='text'>` or `<textarea>`; use the role only for custom editable widgets.

Used on
A free-text input. Prefer <input type="text"> or <textarea>.
Accessible name
Required, via a visible label + aria-labelledby, or aria-label.
Used by components
Example
role="textbox"
<div role="textbox" contenteditable aria-label="Note"></div>
See a live, tested example on the Form patterns page