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
  ed4ae0d3_2552_6d9b_538c_4bc3fa4b2bb3["SidebarInset()"]
  403a7802_5284_b88e_6793_ca6286c4d07c["sidebar.tsx"]
  ed4ae0d3_2552_6d9b_538c_4bc3fa4b2bb3 -->|defined in| 403a7802_5284_b88e_6793_ca6286c4d07c
  style ed4ae0d3_2552_6d9b_538c_4bc3fa4b2bb3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/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]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does SidebarInset() do?
SidebarInset() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/sidebar.tsx.
Where is SidebarInset() defined?
SidebarInset() is defined in apps/v4/examples/radix/ui-rtl/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