Switches between views of the same thing.
npx shadcn@latest add @sphere-kit/tabsimport { Tabs, TabsList, TabsTrigger, TabsContent,} from "@/components/ui/tabs"One rule for using it well. Open one to see it drawn.
Exports Tabs TabsList TabsTrigger TabsContent tabsListVariants. Every part takes its element's usual props and a className.
| Prop | Options | Default |
|---|---|---|
| variant | defaultline | default |
The row scrolls sideways when the tabs don’t fit and keeps the open one in view.