Skip to content

Find what you need, instantly

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

All roles

searchbox

Widget role

A textbox specifically intended for entering search queries, distinguishing search input from ordinary text fields. It supports the same editing states as textbox and often sits inside the search landmark. A native `<input type='search'>` conveys this role.

Used on
A textbox for search queries. Prefer <input type="search">.
Accessible name
Required, via a visible label + aria-labelledby, or aria-label.
Example
role="searchbox"
<input type="search" role="searchbox" aria-label="Search" />