resizable.tsx — ui Source File
Architecture documentation for resizable.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e588086d_2242_1613_6a95_979a23c3c1bd["resizable.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] e588086d_2242_1613_6a95_979a23c3c1bd --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 e3a189ea_cc83_2570_3f47_ad87ecca3ddc["react-resizable-panels"] e588086d_2242_1613_6a95_979a23c3c1bd --> e3a189ea_cc83_2570_3f47_ad87ecca3ddc 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] e588086d_2242_1613_6a95_979a23c3c1bd --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style e588086d_2242_1613_6a95_979a23c3c1bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { GripVertical } from "lucide-react"
import * as ResizablePrimitive from "react-resizable-panels"
import { cn } from "@/lib/utils"
const ResizablePanelGroup = ({
className,
...props
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (
<ResizablePrimitive.PanelGroup
className={cn(
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
className
)}
{...props}
/>
)
const ResizablePanel = ResizablePrimitive.Panel
const ResizableHandle = ({
withHandle,
className,
...props
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
withHandle?: boolean
}) => (
<ResizablePrimitive.PanelResizeHandle
className={cn(
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
className
)}
{...props}
>
{withHandle && (
<div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
<GripVertical className="h-2.5 w-2.5" />
</div>
)}
</ResizablePrimitive.PanelResizeHandle>
)
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
Domain
Subdomains
Functions
Dependencies
- lucide-react
- react-resizable-panels
- utils
Source
Frequently Asked Questions
What does resizable.tsx do?
resizable.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 resizable.tsx?
resizable.tsx defines 2 function(s): ResizableHandle, ResizablePanelGroup.
What does resizable.tsx depend on?
resizable.tsx imports 3 module(s): lucide-react, react-resizable-panels, utils.
Where is resizable.tsx in the architecture?
resizable.tsx is located at deprecated/www/registry/default/ui/resizable.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free