NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsTabs

Tabs

Tabbed navigation between content panels.

PreviousAccordion
NextTable
On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub

Tabs

A set of layered sections of content (tab panels) that display one panel at a time.

When to use

defaultStandard settings panels, navigation within a single dashboard workspace, signin/signup toggles
pillSubcategory filters (e.g. Inbox / Unread / Starred messages)
underlineClean page-level navigation, document tabs, profile sections

Interactive Playground

Live CanvasInteractive
Make changes to your account here.
Controls(5)
variant
select

Visual style of the tabs.

tab1
text

Label for the first tab.

tab2
text

Label for the second tab.

content1
text

Content for the first tab.

content2
text

Content for the second tab.

Generated JSX
Source
import { Tabs, TabsList, TabsTrigger, TabsContent } from "nexoreui"

<Tabs defaultValue="tab1" className="w-full">
  <TabsList>
    <TabsTrigger value="tab1">Account</TabsTrigger>
    <TabsTrigger value="tab2">Password</TabsTrigger>
  </TabsList>
  <TabsContent value="tab1">Make changes to your account here.</TabsContent>
  <TabsContent value="tab2">Change your password here.</TabsContent>
</Tabs>

Default Tabs

Make changes to your account here.
component.tsx
1

Pill Style Tabs

All messages
component.tsx
1

Underline Tabs

Music library
component.tsx
1

Vertical Tabs

General settings
component.tsx
1

Tabs with Icons

Home dashboard
component.tsx
1
Page 1 of 2

API Reference (Props)

PropTypeDefaultDescription
defaultValuestring—The value of the tab that should be active when initially rendered.
valuestring—Controlled value of the active tab.
onValueChange(value: string) => void—Callback triggered when the active tab changes.
variant"default" | "pill" | "underline""default"Visual style variant (applied to TabsList and TabsTrigger).

Accessibility (a11y)

  • Keyboard navigation: Supports standard arrow navigation. Pressing Left Arrow / Right Arrow (or Up / Down in vertical tabs) cycles active focus tabs.
  • ARIA attributes: Exports role="tablist", role="tab", and role="tabpanel" attributes correctly linking labels.