Home / Function/ SidebarInset() — ui Function Reference

SidebarInset() — ui Function Reference

Architecture documentation for the SidebarInset() function in sidebar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4472a395_d4e0_a4b1_b9d8_763c98cbf2d3["SidebarInset()"]
  334954a9_5573_f901_08c0_da02d404f69b["sidebar.tsx"]
  4472a395_d4e0_a4b1_b9d8_763c98cbf2d3 -->|defined in| 334954a9_5573_f901_08c0_da02d404f69b
  style 4472a395_d4e0_a4b1_b9d8_763c98cbf2d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui/sidebar.tsx lines 304–315

function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
  return (
    <main
      data-slot="sidebar-inset"
      className={cn(
        "bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does SidebarInset() do?
SidebarInset() is a function in the ui codebase, defined in apps/v4/examples/base/ui/sidebar.tsx.
Where is SidebarInset() defined?
SidebarInset() is defined in apps/v4/examples/base/ui/sidebar.tsx at line 304.

Analyze Your Own Codebase

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

Try Supermodel Free