Home / File/ sidebar-group-action.tsx — ui Source File

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.

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5f09ada8_931c_fa71_e29e_7ba96885224d["sidebar-group-action.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  5f09ada8_931c_fa71_e29e_7ba96885224d --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  e750d152_1191_1793_7244_99c7f9c595f4["sonner"]
  5f09ada8_931c_fa71_e29e_7ba96885224d --> e750d152_1191_1793_7244_99c7f9c595f4
  6ff5c02b_2b25_4633_4ccd_fd28f2f55862["sidebar"]
  5f09ada8_931c_fa71_e29e_7ba96885224d --> 6ff5c02b_2b25_4633_4ccd_fd28f2f55862
  style 5f09ada8_931c_fa71_e29e_7ba96885224d 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/new-york/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>
  )
}

Subdomains

Functions

Dependencies

  • lucide-react
  • sidebar
  • sonner

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/new-york/internal/sidebar-group-action.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal).

Analyze Your Own Codebase

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

Try Supermodel Free