Tabs
Accessible, keyboard-navigable tab switcher built on Radix. Two variants: pill (search page) and underline (detail sections). Controlled + uncontrolled, horizontally scrollable on overflow.
Pill variant
Rounded background strip with a brand-primary filled pill for the active tab. Used on the search page to switch between hotels, tours, and cruises.
Search stays with dates, guests, and destination. Hotel search bar renders here.
Underline variant
Bottom-border indicator anchoring the active tab. Used on property detail pages to switch between overview, rooms, amenities, and reviews.
Property overview: hero image, description, highlights.
Overflow scrolling
When there are more tabs than fit, the list scrolls horizontally instead of wrapping.
Active: one. Scroll the list horizontally to see the overflow.
Props reference
| Component | Prop | Type | Description |
|---|---|---|---|
| Tabs | value | string | Controlled active tab value |
| Tabs | defaultValue | string | Uncontrolled initial value |
| Tabs | onValueChange | (v: string) => void | Called when the active tab changes |
| TabsList | variant | "pill" | "underline" | Visual style. Default: "underline" |
| TabsTrigger | value | string | Tab identifier, matched to TabsContent |
| TabsContent | value | string | Panel identifier, matched to TabsTrigger |