Tabs

Glass segmented tabs. On phones the bar fills the width and scrolls sideways when the tabs don't fit, with 44px tap targets.

Segmented

Preview
248 photos from this month.

Underline

Plain text tabs with a gradient line under the active one.

Preview

Many tabs

Swipe the bar sideways on a narrow screen. The tab you pick scrolls into view.

Preview

Installation

npx glass-orbit add tabs

Usage

import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/glass-orbit/tabs"

API Reference

variant

"segmented" | "underline" — on TabsList (default segmented)

defaultValue / value

string — on Tabs, as in Radix Tabs