How to build an accessible DataList in React

Rendered as semantic dl with dt/dd pairs so the label-to-value association is native; no extra ARIA role is added

When to use a DataList

When not to use it

Accessibility

Role none, verified at WCAG 2.2-AA.

Common mistakes

Avoid: Faking a description list with stacked divs and manual labels

Prefer: Use the native dl/dt/dd structure DataList emits

dl/dt/dd conveys the term-to-description relationship to assistive tech for free

Example

<DataList
  items={[
    { label: 'Name', value: 'Ada Lovelace' },
    { label: 'Role', value: 'Mathematician' },
  ]}
/>

See the full DataList reference →