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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/resizable.tsx lines 27–48

function ResizableHandle({
  withHandle,
  className,
  ...props
}: ResizablePrimitive.SeparatorProps & {
  withHandle?: boolean
}) {
  return (
    <ResizablePrimitive.Separator
      data-slot="resizable-handle"
      className={cn(
        "cn-resizable-handle 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="cn-resizable-handle-icon z-10 flex shrink-0" />
      )}
    </ResizablePrimitive.Separator>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free