AppSidebar

Collapsible navigation sidebar with section headers, icons, and badge counts. Exports as AppSidebar to avoid conflict with the docs layout component.

Usage

tsx
import { AppSidebar } from 'fxui-core';

<AppSidebar
  sections={[
    {
      title: 'Main',
      items: [
        { label: 'Dashboard', icon: '๐Ÿ“Š', active: true },
        { label: 'Inbox', icon: '๐Ÿ“ฌ', badge: 12 },
      ],
    },
  ]}
  logo={<span className="font-display font-black">FXUI</span>}
  collapsible
/>

Props

| Prop | Type | Default | |------|------|---------| | sections | AppSidebarSection[] | required | | logo | React.ReactNode | โ€” | | footer | React.ReactNode | โ€” | | collapsible | boolean | false | | defaultCollapsed | boolean | false | | width | number (px) | 240 | | collapsedWidth | number (px) | 56 |