Appearance
Sidebar
Sidebar shell ứng dụng (token Soft Periwinkle).
ts
import { SidebarProvider, Sidebar, SidebarHeader, SidebarContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton } from "@minap/ui";1
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>
</>
);
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
SidebarProvider.defaultOpen | boolean | — | |
collapsible | string | — | Xem Sidebar API |
Behavior
- Tích hợp useIsMobile
- Mẫu: /samples/app-shell