YYonda UI Docs

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

ComponentPropTypeDescription
TabsvaluestringControlled active tab value
TabsdefaultValuestringUncontrolled initial value
TabsonValueChange(v: string) => voidCalled when the active tab changes
TabsListvariant"pill" | "underline"Visual style. Default: "underline"
TabsTriggervaluestringTab identifier, matched to TabsContent
TabsContentvaluestringPanel identifier, matched to TabsTrigger