Componentnavigation0.63 KB gzipZero dependencies
AppShell
Page skeleton with top bar, collapsible sidebar, and main content area with built-in skip-link
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add app-shellOr install the full npm package:
npm install bigbulluiUsage
tsx7 lines
import { AppShell } from "@/components/ui/app-shell" <AppShell defaultCollapsed={false}> <header>Header</header> <aside>Sidebar</aside> <main>Main content</main></AppShell>Source code
app-shell.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxapp-shell.tsx81 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface AppShellProps extends React.HTMLAttributes<HTMLElement> { header?: React.ReactNode; sidebar?: React.ReactNode; children: React.ReactNode; defaultCollapsed?: boolean; className?: string;} export function AppShell({ header, sidebar, children, defaultCollapsed = false,Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { AppShell } from "@/components/ui/app-shell"; <AppShell />| Prop | Type | Description |
|---|---|---|
| header | React.ReactNode | Configures header. |
| sidebar | React.ReactNode | Configures sidebar. |
| children | React.ReactNode | Child elements rendered inside the component. |
| defaultCollapsed | boolean | Toggles default collapsed. (Default: false) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |