Home / File/ resizable-example.tsx — ui Source File

resizable-example.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 4 imports 6 functions

Entity Profile

Dependency Diagram

graph LR
  ab89b449_1dd1_3ffd_68b0_f444a9bf3484["resizable-example.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  ab89b449_1dd1_3ffd_68b0_f444a9bf3484 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  e3a189ea_cc83_2570_3f47_ad87ecca3ddc["react-resizable-panels"]
  ab89b449_1dd1_3ffd_68b0_f444a9bf3484 --> e3a189ea_cc83_2570_3f47_ad87ecca3ddc
  da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"]
  ab89b449_1dd1_3ffd_68b0_f444a9bf3484 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a
  778bb2f4_ef6f_6d0b_f708_0f599fde0386["resizable"]
  ab89b449_1dd1_3ffd_68b0_f444a9bf3484 --> 778bb2f4_ef6f_6d0b_f708_0f599fde0386
  style ab89b449_1dd1_3ffd_68b0_f444a9bf3484 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import type { Layout } from "react-resizable-panels"

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
  ResizableHandle,
  ResizablePanel,
  ResizablePanelGroup,
} from "@/registry/bases/radix/ui/resizable"

export default function ResizableExample() {
  return (
    <ExampleWrapper>
      <ResizableHorizontal />
      <ResizableVertical />
      <ResizableWithHandle />
      <ResizableNested />
      <ResizableControlled />
    </ExampleWrapper>
  )
}

function ResizableHorizontal() {
  return (
    <Example title="Horizontal">
      <ResizablePanelGroup
        orientation="horizontal"
        className="min-h-[200px] rounded-lg border"
      >
        <ResizablePanel defaultSize="25%">
          <div className="flex h-full items-center justify-center p-6">
            <span className="font-semibold">Sidebar</span>
          </div>
        </ResizablePanel>
        <ResizableHandle />
        <ResizablePanel defaultSize="75%">
          <div className="flex h-full items-center justify-center p-6">
            <span className="font-semibold">Content</span>
          </div>
        </ResizablePanel>
      </ResizablePanelGroup>
    </Example>
  )
}

function ResizableVertical() {
  return (
    <Example title="Vertical">
      <ResizablePanelGroup
        orientation="vertical"
        className="min-h-[200px] rounded-lg border"
      >
        <ResizablePanel defaultSize="25%">
          <div className="flex h-full items-center justify-center p-6">
            <span className="font-semibold">Header</span>
// ... (99 more lines)

Subdomains

Dependencies

  • example
  • react
  • react-resizable-panels
  • resizable

Frequently Asked Questions

What does resizable-example.tsx do?
resizable-example.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-example.tsx?
resizable-example.tsx defines 6 function(s): ResizableControlled, ResizableExample, ResizableHorizontal, ResizableNested, ResizableVertical, ResizableWithHandle.
What does resizable-example.tsx depend on?
resizable-example.tsx imports 4 module(s): example, react, react-resizable-panels, resizable.
Where is resizable-example.tsx in the architecture?
resizable-example.tsx is located at apps/v4/registry/bases/radix/examples/resizable-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).

Analyze Your Own Codebase

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

Try Supermodel Free