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
  d9a55d1a_1c6e_dbb3_b35b_533032d185f4["ResizableHandle()"]
  7cbecf9c_edac_f905_d9e3_f55256adb533["resizable.tsx"]
  d9a55d1a_1c6e_dbb3_b35b_533032d185f4 -->|defined in| 7cbecf9c_edac_f905_d9e3_f55256adb533
  style d9a55d1a_1c6e_dbb3_b35b_533032d185f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/resizable.tsx lines 26–47

function ResizableHandle({
  withHandle,
  className,
  ...props
}: ResizablePrimitive.SeparatorProps & {
  withHandle?: boolean
}) {
  return (
    <ResizablePrimitive.Separator
      data-slot="resizable-handle"
      className={cn(
        "bg-border focus-visible:ring-ring ring-offset-background 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: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-6 w-1 shrink-0 rounded-lg" />
      )}
    </ResizablePrimitive.Separator>
  )
}

Subdomains

Frequently Asked Questions

What does ResizableHandle() do?
ResizableHandle() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/resizable.tsx.
Where is ResizableHandle() defined?
ResizableHandle() is defined in apps/v4/examples/radix/ui/resizable.tsx at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free