sidebar-group-action.tsx — ui Source File
Architecture documentation for sidebar-group-action.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1832a2fc_36a5_2061_d261_8d98543b2fc4["sidebar-group-action.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 1832a2fc_36a5_2061_d261_8d98543b2fc4 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 e750d152_1191_1793_7244_99c7f9c595f4["sonner"] 1832a2fc_36a5_2061_d261_8d98543b2fc4 --> e750d152_1191_1793_7244_99c7f9c595f4 742f06fb_c1e8_243e_1fc4_8b1cf11704c2["sidebar"] 1832a2fc_36a5_2061_d261_8d98543b2fc4 --> 742f06fb_c1e8_243e_1fc4_8b1cf11704c2 style 1832a2fc_36a5_2061_d261_8d98543b2fc4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import {
ChevronDown,
Frame,
LifeBuoy,
Map,
PieChart,
Plus,
Send,
} from "lucide-react"
import { Toaster, toast } from "sonner"
import {
Sidebar,
SidebarContent,
SidebarGroup,
SidebarGroupAction,
SidebarGroupContent,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarProvider,
} from "@/registry/default/ui/sidebar"
export default function AppSidebar() {
return (
<SidebarProvider>
<Toaster
position="bottom-left"
toastOptions={{
className: "ml-[160px]",
}}
/>
<Sidebar>
<SidebarContent>
<SidebarGroup>
<SidebarGroupLabel>Projects</SidebarGroupLabel>
<SidebarGroupAction
title="Add Project"
onClick={() => toast("You clicked the group action!")}
>
<Plus /> <span className="sr-only">Add Project</span>
</SidebarGroupAction>
<SidebarGroupContent>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton asChild>
<a href="#">
<Frame />
<span>Design Engineering</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
<SidebarMenuItem>
<SidebarMenuButton asChild>
<a href="#">
<PieChart />
<span>Sales & Marketing</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
<SidebarMenuItem>
<SidebarMenuButton asChild>
<a href="#">
<Map />
<span>Travel</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
</SidebarContent>
</Sidebar>
</SidebarProvider>
)
}
Domain
Subdomains
Functions
Dependencies
- lucide-react
- sidebar
- sonner
Source
Frequently Asked Questions
What does sidebar-group-action.tsx do?
sidebar-group-action.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in sidebar-group-action.tsx?
sidebar-group-action.tsx defines 1 function(s): AppSidebar.
What does sidebar-group-action.tsx depend on?
sidebar-group-action.tsx imports 3 module(s): lucide-react, sidebar, sonner.
Where is sidebar-group-action.tsx in the architecture?
sidebar-group-action.tsx is located at deprecated/www/registry/default/internal/sidebar-group-action.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/internal).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free