SidebarMenuSkeleton() — ui Function Reference
Architecture documentation for the SidebarMenuSkeleton() function in sidebar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 02eedee1_3b22_e3ae_8c53_e4f84c9fba39["SidebarMenuSkeleton()"] 0dd28c0a_4131_40f2_8cf0_e0611d33faf6["sidebar.tsx"] 02eedee1_3b22_e3ae_8c53_e4f84c9fba39 -->|defined in| 0dd28c0a_4131_40f2_8cf0_e0611d33faf6 style 02eedee1_3b22_e3ae_8c53_e4f84c9fba39 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/sidebar.tsx lines 602–638
function SidebarMenuSkeleton({
className,
showIcon = false,
...props
}: React.ComponentProps<"div"> & {
showIcon?: boolean
}) {
// Random width between 50 to 90%.
const width = React.useMemo(() => {
return `${Math.floor(Math.random() * 40) + 50}%`
}, [])
return (
<div
data-slot="sidebar-menu-skeleton"
data-sidebar="menu-skeleton"
className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}
{...props}
>
{showIcon && (
<Skeleton
className="size-4 rounded-md"
data-sidebar="menu-skeleton-icon"
/>
)}
<Skeleton
className="h-4 max-w-(--skeleton-width) flex-1"
data-sidebar="menu-skeleton-text"
style={
{
"--skeleton-width": width,
} as React.CSSProperties
}
/>
</div>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does SidebarMenuSkeleton() do?
SidebarMenuSkeleton() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/sidebar.tsx.
Where is SidebarMenuSkeleton() defined?
SidebarMenuSkeleton() is defined in apps/v4/registry/new-york-v4/ui/sidebar.tsx at line 602.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free