UI ComponentsLayout
Sidebar
A semantic supporting-content region.
Import
import { Sidebar } from "@puzzle-ui/ui";Usage
Sidebar supplies a styled region, not navigation state or page positioning. Compose it with PageLayout when building a full page.
API
| Prop | Type | Default | Description |
|---|---|---|---|
as | ElementType | "aside" | Semantic element override. |
children | ReactNode | - | Supporting content. |
Native attributes, styles, classes, and refs for the chosen element are forwarded. Name multiple complementary landmarks distinctly. Use CollapsableSidebar for expandable icon navigation.