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
  8e25e072_124a_90ab_7077_65ebfa6ea0f2["TabsWithDropdown()"]
  8b935873_324f_276b_ff32_c08eebcb2ffb["tabs-example.tsx"]
  8e25e072_124a_90ab_7077_65ebfa6ea0f2 -->|defined in| 8b935873_324f_276b_ff32_c08eebcb2ffb
  style 8e25e072_124a_90ab_7077_65ebfa6ea0f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/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 asChild>
              <Button variant="ghost" size="icon" className="size-8">
                <IconPlaceholder
                  lucide="MoreHorizontalIcon"
                  tabler="IconDots"
                  hugeicons="MoreHorizontalCircle01Icon"
                  phosphor="DotsThreeIcon"
                  remixicon="RiMoreLine"
                />
                <span className="sr-only">More options</span>
              </Button>
            </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/radix/examples/tabs-example.tsx.
Where is TabsWithDropdown() defined?
TabsWithDropdown() is defined in apps/v4/registry/bases/radix/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