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
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add app-shell

Or install the full npm package:

npm install bigbullui

Usage

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 helper

Zero 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 />
PropTypeDescription
headerReact.ReactNodeConfigures header.
sidebarReact.ReactNodeConfigures sidebar.
childrenReact.ReactNodeChild elements rendered inside the component.
defaultCollapsedbooleanToggles default collapsed. (Default: false)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.