@deck-ui/layout
v0.4.0
Published
App-level layout primitives. Sidebar for navigation, tab bar for view switching, split view for panels.
Readme
@deck-ui/layout
App-level layout primitives. Sidebar for navigation, tab bar for view switching, split view for panels.
Install
pnpm add @deck-ui/layoutUsage
import { AppSidebar, TabBar, SplitView } from "@deck-ui/layout"
import "@deck-ui/layout/src/styles.css"
<AppSidebar
logo={<Logo />}
items={projects}
selectedId={activeId}
onSelect={setActiveId}
onAdd={createProject}
/>
<TabBar
tabs={[
{ id: "board", label: "Board" },
{ id: "chat", label: "Chat", badge: 2 },
]}
activeTab={currentTab}
onTabChange={setCurrentTab}
/>Exports
AppSidebar-- project/chat list sidebar with logo, add, delete, keyboard shortcutsTabBar-- horizontal tab strip with badges and action slotsSplitView-- two-pane layout with resizable dividerResizablePanelGroup,ResizablePanel,ResizableHandle-- lower-level resizable primitives
Peer Dependencies
- React 19+
- @deck-ui/core
Part of Keel & Deck.
