Home / File/ resizable.tsx — ui Source File

resizable.tsx — ui Source File

Architecture documentation for resizable.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 3 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  5492698b_84c9_b3d0_2c3c_47ef73ae7d52["resizable.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  5492698b_84c9_b3d0_2c3c_47ef73ae7d52 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  e3a189ea_cc83_2570_3f47_ad87ecca3ddc["react-resizable-panels"]
  5492698b_84c9_b3d0_2c3c_47ef73ae7d52 --> e3a189ea_cc83_2570_3f47_ad87ecca3ddc
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  5492698b_84c9_b3d0_2c3c_47ef73ae7d52 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style 5492698b_84c9_b3d0_2c3c_47ef73ae7d52 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { GripVerticalIcon } from "lucide-react"
import * as ResizablePrimitive from "react-resizable-panels"

import { cn } from "@/lib/utils"

function ResizablePanelGroup({
  className,
  ...props
}: ResizablePrimitive.GroupProps) {
  return (
    <ResizablePrimitive.Group
      data-slot="resizable-panel-group"
      className={cn(
        "flex h-full w-full aria-[orientation=vertical]:flex-col",
        className
      )}
      {...props}
    />
  )
}

function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {
  return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />
}

function ResizableHandle({
  withHandle,
  className,
  ...props
}: ResizablePrimitive.SeparatorProps & {
  withHandle?: boolean
}) {
  return (
    <ResizablePrimitive.Separator
      data-slot="resizable-handle"
      className={cn(
        "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90",
        className
      )}
      {...props}
    >
      {withHandle && (
        <div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
          <GripVerticalIcon className="size-2.5" />
        </div>
      )}
    </ResizablePrimitive.Separator>
  )
}

export { ResizableHandle, ResizablePanel, ResizablePanelGroup }

Subdomains

Dependencies

  • lucide-react
  • react-resizable-panels
  • utils

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 3 function(s): ResizableHandle, ResizablePanel, 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 apps/v4/registry/new-york-v4/ui/resizable.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).

Analyze Your Own Codebase

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

Try Supermodel Free