{/* `inert` keeps the doc page's tab order clean; the trail itself is the real component. */}
{children}
)
}
/** Every shape PageBreadcrumbTrail takes: ancestors only, current page, switcher. */
export function BreadcrumbTrailShapesPreview() {
return (
)
}
/** The trail only collapses when the row runs out of room, and truncates the leaf last. */
export function BreadcrumbTrailCollapsePreview() {
const deep = [...TRAIL_ANCESTORS, { label: "Spring 2026 cohort", href: "/design-os/learning-activities/courses/spring" }]
return (
)
}
/* ── Default variant (pill) ─────────────────────────────────────────────── */
/*
* These rows carry `pinVariant`, which product surfaces must not: the compact
* shell renders an unpinned `default` row as `line`, so without it a page
* documenting the pill would quietly show an underline instead.
*/
export function TabsPrimaryVariantsPreview() {
return (
Tab oneTab twoTab threeTab oneTab twoTab three
Tab one
Tab two
Tab three
)
}
/** @deprecated Use TabsPrimaryVariantsPreview — kept for catalog aliases */
export function TabsDefaultPreview() {
return (
OverviewDetails
Default pill tablist
Second panel
)
}
/* ── Line variant (underline) ───────────────────────────────────────────── */
export function TabsSecondaryVariantsPreview() {
return (
Alpha
Beta
AlphaBeta
Alpha
Beta
)
}
/** @deprecated Use TabsSecondaryVariantsPreview */
export function TabsLinePreview() {
return (
Chart
Trend
Chart panel body
Trend panel body
)
}
const RESPONSIVE_TABS = [
{ value: "chart", label: "Chart", icon: "fa-chart-mixed" },
{ value: "trend", label: "Trend", icon: "fa-chart-line" },
{ value: "table", label: "Table", icon: "fa-table" },
{ value: "notes", label: "Notes", icon: "fa-note-sticky" },
]
/**
* One resizable row. Trigger sizing is left to the variant, so the pill and the
* line row each collapse at their own scale rather than a shared override.
*/
function ResponsiveCollapseRow({
variant,
ariaLabel,
}: {
variant: "default" | "line"
ariaLabel: string
}) {
return (
)
}
export function TabsResponsiveCollapsePreview() {
return (
Default variant
Line variant
Drag the lower right corner of either row to narrow it. Both variants shed
the same way, because the behaviour lives in the scroll region rather than
the chrome. Once the labels stop fitting, inactive tabs show their icon
alone and name themselves on hover or focus, while the selected tab keeps
its label. Narrower still, the tabs that no longer fit move into a menu at
the end of the row. Picking one there brings it back onto the row and sends
another tab into the menu, so the selected tab is always visible.