Component docs
Loading
import { AppSidebar } from "@pixxl-tools/components";
// In Server Components:
import { AppSidebar } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
collapsed | boolean | — | — |
footer | ReactNode | — | Footer slot. |
side | "start" | "end" | "left" | "right" | start | Which edge of the layout the sidebar is on (the border faces the content). start (default) / end follow the writing direction; left / right are physical. |
title | ReactNode | — | Title (any content). |
collapsedboolean
footerReactNode
Footer slot.
sidedefault start"start" | "end" | "left" | "right"
Which edge of the layout the sidebar is on (the border faces the content). start (default) / end follow the writing direction; left / right are physical.
titleReactNode
Title (any content).
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<AppSidebar>...</AppSidebar>