Home / Function/ ResizableHandle() — ui Function Reference

ResizableHandle() — ui Function Reference

Architecture documentation for the ResizableHandle() function in resizable.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  aa7ca028_507a_c5bf_3a4a_cce4a4790308["ResizableHandle()"]
  5492698b_84c9_b3d0_2c3c_47ef73ae7d52["resizable.tsx"]
  aa7ca028_507a_c5bf_3a4a_cce4a4790308 -->|defined in| 5492698b_84c9_b3d0_2c3c_47ef73ae7d52
  style aa7ca028_507a_c5bf_3a4a_cce4a4790308 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/resizable.tsx lines 28–51

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>
  )
}

Subdomains

Frequently Asked Questions

What does ResizableHandle() do?
ResizableHandle() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/resizable.tsx.
Where is ResizableHandle() defined?
ResizableHandle() is defined in apps/v4/registry/new-york-v4/ui/resizable.tsx at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free