Design accessible tabs for switching views without page reloads, suppo
Top-aligned horizontal tabs are designed for desktop use, providing a clear and intuitive way to switch between different views.
For dense settings, an optional left-aligned vertical layout can be employed to optimize space utilization.
Use underlined indicator or pill background; one active tab only.
Tabs should generally be limited to 6–8 items to maintain usability and avoid overwhelming the user.
If more than eight tabs are needed, a dropdown menu labeled ‘More’ provides an alternative navigation option.
Use role="tablist" , role="tab" , role="tabpanel" . Manage aria-select
The component utilizes semantic HTML5 roles – ‘tablist’, ‘tab’, and ‘tabpanel’ – for accessibility and proper structure.
ARIA attributes are used to manage the state of each tab, including default, hover, focus (indicated by a visible ring), and active states. The active tab uses a primary color indicator with sufficient text contrast for readability.
Frequently asked questions
What is the recommended approach for mobile tabs?
On mobile devices, horizontal scrolling tabs are preferred. Alternatively, a segmented control can be used to provide a clear and intuitive navigation experience.
How should panels be handled for efficient mounting and unmounting?
Panels should mount and unmount efficiently to minimize loading times. Maintaining scroll position within the panel is crucial, and lazy-loading content can improve performance for data-heavy panels.
What are the key considerations for copyright information related to the tab component?
© 2024 AI Usage by Countries. Tab navigation component.
When was this design system last updated?
Last updated: 2024 | Design System
▶ Try it live
Everything above runs in your browser — open Hash Function Avalanche Visualizer and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.