SpinTheMic
Pro

Interview practice question

Building an accessible tabs component

Frontend Engineering · Accessibility · Intermediate

How would you build an accessible tabs component?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • role="tablist", "tab", "tabpanel".
  • aria-selected, aria-controls, aria-labelledby.
  • Arrow keys move between tabs; Tab moves into panel.
  • Roving tabindex.
  • Consider if tabs are right pattern.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics