SidebarInset() — ui Function Reference
Architecture documentation for the SidebarInset() function in sidebar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b29bec26_671b_7143_b922_b65b1a365822["SidebarInset()"] c3d1b2a8_7455_5144_ec35_453b78980e06["sidebar.tsx"] b29bec26_671b_7143_b922_b65b1a365822 -->|defined in| c3d1b2a8_7455_5144_ec35_453b78980e06 style b29bec26_671b_7143_b922_b65b1a365822 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/sidebar.tsx lines 303–314
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}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does SidebarInset() do?
SidebarInset() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/sidebar.tsx.
Where is SidebarInset() defined?
SidebarInset() is defined in apps/v4/examples/radix/ui/sidebar.tsx at line 303.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free