📖 Step 3: Design - UI Components & Patterns#408 / 498

Tabs

Tabs

📖One-line summary

A component that switches between several content panels in the same area.

✨Example

🧩

탭

Tabs

⚡Vibe coding prompt examples

>_

Build an accessible tabs component (role=tablist, arrow-key navigation) in React + Tailwind.

>_

Write Next.js tabs where the selected tab syncs to the URL query (?tab=reviews) and survives a refresh.

>_

Compare when to use tabs, a segmented control, and a bottom tab bar.

Try these prompts in your AI coding assistant!