Foundation ComponentReact 18 & 19Zero Runtime CSS

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:

PropTypeDefaultDescription
labelstringrequiredAccessible name of the navigation.
childrenReactNode—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 sidebar

Make 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.

Sidebar.tsxREACT / TSX

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.