Did you know?dyk.si

Tabs

A row of labels that switches one shared content area between views.

role="tablist" / "tab" / "tabpanel"

When to use it

To switch views of the same subject without leaving the page.

Common mistake

Don’t use tabs for sequential steps; use a stepper.

Accessibility

Arrow keys move between tabs; only the active tab sits in the Tab order.

Name in code

HTML/CSSrole="tablist" / "tab" / "tabpanel"
React<Tabs>
Jetpack ComposePrimaryTabRow + Tab
SwiftUITabView / Picker

Ready prompt for your coding agent

Add a Tabs to this screen. What it is: A row of labels that switches one shared content area between views. Implement with: role="tablist" / "tab" / "tabpanel" (HTML/CSS). Accessibility: Arrow keys move between tabs; only the active tab sits in the Tab order. When to use it: To switch views of the same subject without leaving the page. Avoid: Don’t use tabs for sequential steps; use a stepper. Reuse the project's existing design tokens, spacing and component conventions.

Or compose a whole page from this element and others →

Prompts are in English for the most precise results with coding agents.