Home / Function/ TabsWithDropdown() — ui Function Reference

TabsWithDropdown() — ui Function Reference

Architecture documentation for the TabsWithDropdown() function in tabs-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  28120384_31c5_75ef_c079_34167e3553a6["TabsWithDropdown()"]
  dd1a6104_63fe_63e2_e50f_c437e305bec0["tabs-example.tsx"]
  28120384_31c5_75ef_c079_34167e3553a6 -->|defined in| dd1a6104_63fe_63e2_e50f_c437e305bec0
  style 28120384_31c5_75ef_c079_34167e3553a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/tabs-example.tsx lines 255–301

function TabsWithDropdown() {
  return (
    <Example title="With Dropdown">
      <Tabs defaultValue="overview">
        <div className="flex items-center justify-between">
          <TabsList>
            <TabsTrigger value="overview">Overview</TabsTrigger>
            <TabsTrigger value="analytics">Analytics</TabsTrigger>
            <TabsTrigger value="reports">Reports</TabsTrigger>
          </TabsList>
          <DropdownMenu>
            <DropdownMenuTrigger
              render={<Button variant="ghost" size="icon" className="size-8" />}
            >
              <IconPlaceholder
                lucide="MoreHorizontalIcon"
                tabler="IconDots"
                hugeicons="MoreHorizontalCircle01Icon"
                phosphor="DotsThreeOutlineIcon"
                remixicon="RiMoreLine"
              />
              <span className="sr-only">More options</span>
            </DropdownMenuTrigger>
            <DropdownMenuContent align="end">
              <DropdownMenuItem>Settings</DropdownMenuItem>
              <DropdownMenuItem>Export</DropdownMenuItem>
              <DropdownMenuSeparator />
              <DropdownMenuItem>Archive</DropdownMenuItem>
            </DropdownMenuContent>
          </DropdownMenu>
        </div>

        <div className="style-nova:p-4 style-vega:p-6 style-maia:p-6 style-mira:p-4 style-lyra:p-4 style-nova:rounded-lg style-vega:rounded-lg style-maia:rounded-xl style-mira:rounded-md style-lyra:rounded-none border">
          <TabsContent value="overview">
            View your dashboard metrics and key performance indicators.
          </TabsContent>
          <TabsContent value="analytics">
            Detailed analytics and insights about your data.
          </TabsContent>
          <TabsContent value="reports">
            Generate and view custom reports.
          </TabsContent>
        </div>
      </Tabs>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does TabsWithDropdown() do?
TabsWithDropdown() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/tabs-example.tsx.
Where is TabsWithDropdown() defined?
TabsWithDropdown() is defined in apps/v4/registry/bases/base/examples/tabs-example.tsx at line 255.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free