Sidebar
A quiet workspace rail. Compose route links, group labels and your own icons.
Interactive preview
Usage
import { Sidebar } from "@devvy-ui/react";
<Sidebar label="Workspace">
<span className="dvy-sidebar-heading">WORKSPACE</span>
<a href="/overview" aria-current="page">Overview</a>
<a href="/projects">Projects</a>
</Sidebar>API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | required | Accessible name of the navigation. |
| children | ReactNode | — | Native links, headings and groups. |
Accessibility & behavior
Platform Behavior & Guidelines
A native named navigation landmark. Set aria-current="page" on the active link. Native Tab/link behavior, logical spacing and visible focus work with your router. Positioning and mobile disclosure belong to the application. If adding icons, hide decorative ones from assistive technology.
Source ownership
Add the audited implementation directly into your repository with the CLI:
node /path/to/devvy-ui/packages/cli/src/cli.mjs add sidebarMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.