Skip to content
Navigation

App Shell

Sidebar + header + content layout in one step.

Import

tsx
import { AppShell } from "@cooud-ui/ui";
bash
npx cooud-ui add app-shell

Examples

API Reference

Generated from the component's exported types.

AppShellProps

Extends HTMLAttributes<HTMLDivElement>

PropTypeDefaultDescription
sidebar*
ReactNodeThe sidebar element. Pass a `<Sidebar>` (and its trigger/menus). Rendered as the first child of the provider so it sits beside the content region.
header
ReactNodeOptional topbar content rendered inside a sticky `<header role="banner">` at the top of the content region. Omit for a header-less shell.
providerProps
Omit<SidebarProviderProps, "children">Props forwarded to the underlying `SidebarProvider`.
inset
booleanfalseWhen `true`, wraps the content region in `SidebarInset` for the rounded, inset surface that pairs with `variant="inset" | "floating"` sidebars.
contentClassName
stringExtra classes for the content region wrapper.
headerClassName
stringExtra classes for the sticky header.