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
  7f5cb707_0139_4fce_2d8f_1100dd122360["sidebar-group-action.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  7f5cb707_0139_4fce_2d8f_1100dd122360 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  e750d152_1191_1793_7244_99c7f9c595f4["sonner"]
  7f5cb707_0139_4fce_2d8f_1100dd122360 --> e750d152_1191_1793_7244_99c7f9c595f4
  12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"]
  7f5cb707_0139_4fce_2d8f_1100dd122360 --> 12632a83_ef01_5f03_4110_ed33d49893b7
  style 7f5cb707_0139_4fce_2d8f_1100dd122360 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { FrameIcon, MapIcon, PieChartIcon, PlusIcon } from "lucide-react"
import { toast, Toaster } from "sonner"

import {
  Sidebar,
  SidebarContent,
  SidebarGroup,
  SidebarGroupAction,
  SidebarGroupContent,
  SidebarGroupLabel,
  SidebarMenu,
  SidebarMenuButton,
  SidebarMenuItem,
  SidebarProvider,
} from "@/registry/new-york-v4/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!")}
            >
              <PlusIcon /> <span className="sr-only">Add Project</span>
            </SidebarGroupAction>
            <SidebarGroupContent>
              <SidebarMenu>
                <SidebarMenuItem>
                  <SidebarMenuButton asChild>
                    <a href="#">
                      <FrameIcon />
                      <span>Design Engineering</span>
                    </a>
                  </SidebarMenuButton>
                </SidebarMenuItem>
                <SidebarMenuItem>
                  <SidebarMenuButton asChild>
                    <a href="#">
                      <PieChartIcon />
                      <span>Sales & Marketing</span>
                    </a>
                  </SidebarMenuButton>
                </SidebarMenuItem>
                <SidebarMenuItem>
                  <SidebarMenuButton asChild>
                    <a href="#">
                      <MapIcon />
                      <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 apps/v4/registry/new-york-v4/internal/sidebar-group-action.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/internal).

Analyze Your Own Codebase

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

Try Supermodel Free