Cal.comdesign-system

Segmented Nav

Exclusive destination links styled as a segmented control.

Use SegmentedNav when each segment is a URL destination — a status, ?type=, or another page. Items are real links with aria-current="page" on the current one. Do not use Tabs here: there are no associated panels. For an exclusive value that does not navigate, use Segmented Radio Group. See Segmented controls for the full pick list.

Layout classes (mb-4, hidden md:flex) go on SegmentedNav (<nav>). The muted pill surface is an inner element.

Example

Out of office mine / team / holidays. Copy is paraphrased.

apps/web · out of office
apps/web/modules/settings/outOfOffice/OutOfOfficeToggleGroup.tsx

Bookings status uses size="sm" inside a horizontal ScrollArea.

apps/web · bookings status
apps/web/modules/bookings/components/BookingListContainer.tsx

API

Call sites

Example URLs

Not exhaustive — a few places you can open locally (e.g. http://localhost:3000) to see this in product.

Source

packages/coss-ui/src/shared/segmented-nav.tsx