Layout
The default admin shell: app bar, sidebar, and content area.
Installation
pnpm dlx shadcn@latest add @chelone/layoutThe default admin shell: app bar, sidebar, and content area.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| appBar | ComponentType<AppBarProps> | — | Replaces the default `<AppBar />` at the top of the content area. |
| children | ReactNode | — | The route content injected by the `<Admin>`/`<AdminRoutes>` shell. |
| error | ReactNode | (props: ErrorFallbackProps) => ReactNode | — | Replaces the content-boundary fallback. A node renders verbatim; a render function receives `{ error, errorInfo, resetErrorBoundary }`. |
| menu | ComponentType<MenuProps> | — | Replaces the default `<Menu />` inside the sidebar content area. |
| sidebar | ComponentType<AppSidebarProps> | — | Replaces the default `<AppSidebar>` component. |