ResizableControlled() — ui Function Reference
Architecture documentation for the ResizableControlled() function in resizable-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ee11beff_de7a_661c_bf8f_a2f69d48240a["ResizableControlled()"] d603466c_60da_fe3a_8d1b_ccebfbe364dc["resizable-example.tsx"] ee11beff_de7a_661c_bf8f_a2f69d48240a -->|defined in| d603466c_60da_fe3a_8d1b_ccebfbe364dc style ee11beff_de7a_661c_bf8f_a2f69d48240a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/resizable-example.tsx lines 130–158
function ResizableControlled() {
const [layout, setLayout] = React.useState<Layout>({})
return (
<Example title="Controlled">
<ResizablePanelGroup
orientation="horizontal"
className="min-h-[200px] rounded-lg border"
onLayoutChange={setLayout}
>
<ResizablePanel defaultSize="30%" id="left" minSize="20%">
<div className="flex h-full flex-col items-center justify-center gap-2 p-6">
<span className="font-semibold">
{Math.round(layout.left ?? 30)}%
</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize="70%" id="right" minSize="30%">
<div className="flex h-full flex-col items-center justify-center gap-2 p-6">
<span className="font-semibold">
{Math.round(layout.right ?? 70)}%
</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ResizableControlled() do?
ResizableControlled() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/resizable-example.tsx.
Where is ResizableControlled() defined?
ResizableControlled() is defined in apps/v4/registry/bases/base/examples/resizable-example.tsx at line 130.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free