OverviewSetupComponentsContributingFull documentation
Components
62
Actions
ButtonToggleToggle Group
Inputs
CalendarCheckboxColor PickerCurrency InputDate Time PickerOptional Time PickerFormForm Required IndicatorInputInput OTPLabelRadio GroupSelectSliderSwitchTextareaTime Picker Input
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuHover CardPopoverSheetTooltip
Navigation
BreadcrumbCommandQuick Command CenterMenubarNavbarNavigation MenuPaginationSidebarTabs
Feedback
AlertAvatarBadgeProgressSkeletonSonnerSticky Bottom BarToastToaster
Data
ChartDiff ViewerTable
Layout
AccordionAspect RatioCardCarouselCollapsibleResizableScroll AreaSeparator
Typography
Code BlockKbdMarkdown
Advanced
Report Problem Dialog
AboutContactPricingApps
  • Learning Resources
  • Blog

    Read our latest articles and updates.

  • Changelog

    Stay up to date with our latest product updates and improvements.

  • Careers

    Join our team and help us build the future of Tuturuuu.

  • Partners

    Explore partnership opportunities with Tuturuuu.

  • Contributors

    Meet the people who make Tuturuuu possible.

  • Security

    Learn about our security practices and commitments.

  • Random Generator

    Generate secure IDs, tokens, API keys, and passwords locally in your browser.

  • Branding

    Get Tuturuuu's branding assets and guidelines.

  • UI

    Browse the Tuturuuu UI component library.

  • Documentation

    Find detailed documentation and guides.

Navigation

Tabs

Preview Tabs, copy setup snippets, review examples, and inspect API exports for @tuturuuu/ui/tabs.

Live preview@tuturuuu/ui/tabsView in docs

Preview

A contained preview using the same shared primitive exported by the package.

Installation

Install the shared UI package, import global styles once, then import the component from its public subpath.

terminal
bun add @tuturuuu/ui
manual step
import '@tuturuuu/ui/globals.css';
manual step
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@tuturuuu/ui/tabs';

Usage

Copy the default usage snippet and adapt labels, state, and event handlers to the product surface.

usage.tsx
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@tuturuuu/ui/tabs';

<Tabs defaultValue="preview"><TabsList><TabsTrigger value="preview">Preview</TabsTrigger></TabsList><TabsContent value="preview">Content</TabsContent></Tabs>

Examples

Examples reuse the registry snippets so the docs stay aligned with the component catalog.

Default

A minimal implementation using the current registry snippet.

tabs.tsx
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@tuturuuu/ui/tabs';

<Tabs defaultValue="preview"><TabsList><TabsTrigger value="preview">Preview</TabsTrigger></TabsList><TabsContent value="preview">Content</TabsContent></Tabs>

Composition

Use the grouped exports when the primitive has slots, triggers, content regions, or providers.

tabs.tsx
import {
  Tabs,
  TabsList,
  TabsTrigger,
  TabsContent,
} from '@tuturuuu/ui/tabs';

Package import

Import through the public package path so workspace and external apps share the same contract.

tabs.tsx
// Public package import
import { Tabs } from '@tuturuuu/ui/tabs';

// Workspace apps should keep importing through the package boundary.

API reference

The public exports currently available from this component entry.

NameKindDescription
TabsComponentTabs is exported from @tuturuuu/ui/tabs. Inspect the source for component-specific props and composition details.
TabsListComponentTabsList is exported from @tuturuuu/ui/tabs. Inspect the source for component-specific props and composition details.
TabsTriggerComponentTabsTrigger is exported from @tuturuuu/ui/tabs. Inspect the source for component-specific props and composition details.
TabsContentComponentTabsContent is exported from @tuturuuu/ui/tabs. Inspect the source for component-specific props and composition details.

Customization

Common props, states, and composition points to review before using this component.

Default valueOrientationContent

Related components

Continue through nearby primitives in the same category.

Breadcrumb

A Navigation component from @tuturuuu/ui/breadcrumb.

@tuturuuu/ui/breadcrumb

Command

A Navigation component from @tuturuuu/ui/command.

@tuturuuu/ui/command

Quick Command Center

A Navigation component from @tuturuuu/ui/quick-command-center.

@tuturuuu/ui/quick-command-center
PreviousSidebarNextAlert
On this page
PreviewInstallationUsageExamplesAPI referenceCustomizationRelated

Search components

Jump to any component.

logo
Tuturuuu