Tabs

Panel switcher with pill (header-style) and line variants.

Installation

Add this item from the registry, or import it from the package after installing Default File UI.

Registry path

itsvigneshv/default-file-ui/tabs

Package import

import { Tabs, TabsList, TabsTrigger, TabsContent } from "@default-file/ui/components/df-tabs"

Default

The standard tab style uses a soft track with an animated active indicator.

Line

Underline indicators for docs and content chrome.

Sizes

Small, default, and large tabs.

Properties

Panel switcher with pill and line variants. Compose Tabs, TabsList, TabsTrigger, and TabsContent.

Tabs

PropTypeDefaultNotes
variant"pill" | "line""pill"Visual style for the tab list and triggers.
size"sm" | "default" | "lg""default"Trigger height and type size.
valuestringControlled active tab value.
defaultValuestringUncontrolled initial tab value.
onValueChange(value: string) => voidCalled when the active tab changes.
classNamestringAdditional styles on the root.

TabsList

Container for triggers. Inherits variant and size from Tabs.

PropTypeDefaultNotes
classNamestringAdditional styles on the list.
childrenReactNodeTabsTrigger children.

TabsTrigger

PropTypeDefaultNotes
valuestringTab value this trigger activates (required).
disabledbooleanNon-interactive trigger.
childrenReactNodeTrigger label.
…button attributesButtonHTMLAttributesNative button props.

TabsContent

PropTypeDefaultNotes
valuestringShows when this value is active (required).
forceMountbooleanfalseKeep content mounted when inactive.
childrenReactNodePanel content.
classNamestringAdditional styles on the panel.