Skip to content

Sidebar ​

Sidebar shell ứng dụng (token Soft Periwinkle).

ts
import { SidebarProvider, Sidebar, SidebarHeader, SidebarContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton } from "@minap/ui";

Examples ​

Mẫu sống trong Preview; chọn View code khi cần copy.

Usage ​

tsx
import { Sheet } from "@minap/ui";

export function Example() {
  return (
    <>
      <div className="flex w-full flex-col gap-2">
        <p className="text-sm text-muted-foreground">
          Full Sidebar composition (Sheet / off-canvas on narrow · persistent on wide): Samples → App shell.
        </p>
        <EmbedDeepLink href="/samples/app-shell">Open app shell</EmbedDeepLink>
      </div>
    </>
  );
}

Props / API ​

Prop / APITypeDefaultNotes
SidebarProvider.defaultOpenboolean—
collapsiblestring—Xem Sidebar API

Behavior ​

  • Tích hợp useIsMobile
  • Mẫu: /samples/app-shell

MINAP UI — Soft Periwinkle light, Mobile-First