4.6 · Navigation

Tab Navigation.

Swap content panels without leaving the page. Watch the blue underline slide between tabs in the demo.

What it is

Tabs are a horizontal row of clickable labels at the top of a content area, where clicking a tab swaps the content panel below it. Tabs are perfect for organizing related content that users need to switch between without leaving the page: product specs vs reviews vs Q&A on a product page, or different dashboard views.

How it works

A row of button elements acts as the tab strip. The active tab is indicated by an underline, a filled background, or bold text. Clicking a tab adds the 'active' class to that tab and shows its corresponding content panel while hiding all others.

Active indicatorUnderline, filled background, or bold text showing the selected tab
Panel swapOther panels set to display:none or opacity:0 when their tab is inactive
role="tab" / "tabpanel"Accessibility attributes so keyboard and screen reader users can navigate
Animated indicatorA sliding underline that moves smoothly between tabs — premium touch
Tip. The sliding animated tab indicator is a great detail. Achieve it with a separate underline element (position:absolute; bottom:0) that moves via transform:translateX() when tabs are clicked. Calculate target X from the clicked tab's offsetLeft.

Live demo

Click between tabs. Watch the blue underline slide and the panel cross-fade.

Live · click tabs
★ Batch 12 · numbered

The Field Jacket

$485

Built to outlast a season.

The Field Jacket is hand-cut from Lancashire-mill waxed cotton, lined in cotton flannel, and finished with solid brass hardware. Designed for cold mornings and longer evenings.

  • Numbered, signed inside seam by maker
  • Two-year free repair guarantee
  • Re-waxing service available, $40 + return shipping

Specifications

Material10oz waxed cotton, Lancashire mill
Lining100% cotton flannel
HardwareSolid brass, lacquered
Weight1.4 kg / 3.1 lb (size M)
OriginCut, sewn, finished in Brooklyn, NY
CareBrush off, spot clean, re-wax annually

What 128 owners say.

★ Hannah K. · verified · NYC
★★★★★

Wore it through every winter day this year. The wax softens beautifully — looks better at month 12 than day 1.

★ Theo M. · verified · Reykjavík
★★★★★

Worth every dollar. The brass hardware alone is worth half the price.

★ Soraya N. · verified · Portland
★★★★☆

Sleeves run slightly long for me, otherwise perfect. They offered free hemming.

Frequently asked.

Is the jacket waterproof?
Water-resistant. The wax sheds light to moderate rain. For full waterproofing, re-wax annually.
What size should I order?
Order your usual size. The fit is intentionally roomy in the shoulders to layer a heavy sweater underneath.
Can it be machine washed?
Never. Brush off dirt, spot-clean stains. The wax will dissolve in detergent.

Copy this prompt

Prompt · 4.6 Tab Navigation
Build a product detail page with tab navigation. Tab bar: 4 tabs — Overview, Specifications, Reviews (with count badge), FAQ. Tab strip styling: white background, bottom border 1px solid #E5E7EB, tabs have padding:14px 24px, font-size:15px, font-weight:500, color:#6B7280. Active tab: color:#111, border-bottom:2px solid #2563EB (brand blue), margin-bottom:-1px to overlap container border. Add a sliding animated indicator: a 2px blue line (position:absolute, bottom:-1px, transition:transform 0.25s ease, width matches the active tab) that slides across when tabs are clicked. Content panels: only the active panel is visible (others display:none). Each panel has fade-in: opacity 0 to 1 over 0.2s on activation.

Example sites to study