Skip to content

Find what you need, instantly

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

All roles

treeitem

Widget role

An item within a tree that may contain child treeitems and can be expanded or collapsed via aria-expanded. Its depth is conveyed with aria-level, and it may be selectable with aria-selected. It's reached with arrow-key navigation within the tree.

Used on
An item in a tree that may contain child treeitems.
Accessible name
From child text content.
Example
role="treeitem"
<li role="treeitem" aria-expanded="false">src</li>