Segmented Control

Segmented control allows users to toggle between alternate views of the same content.

What the component handles

  • Arrow key navigation between options within the group
  • Proper radio button semantics and grouping (role="radiogroup")

What you need to provide

  • accessibleText prop to provide screen reader label for the group
  • aria-controls linking to content that changes based on selection

Color contrast

Since the Segmented Control’s background is not necessary to determine the component’s hit area, there is no contrast requirement beyond the 4.5:1 text contrast, which is ensured.