Alpha EnhancementReact 18 & 19Zero Runtime CSS

Dock

A named navigation surface with native links and buttons. Glass is optional.

Interactive preview

Usage

import { Dock } from "@devvy-ui/react";

<Dock label="Workspace navigation">
  <a href="/workspace" aria-current="page">Workspace</a>
  <a href="/activity">Activity</a>
</Dock>

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
labelstringrequiredAccessible name for this navigation.
floatingbooleanfalsePin to the viewport safe area. Reserve space in the layout.

Accessibility & behavior

Platform Behavior & Guidelines

Use links for navigation, and buttons for actions. Every item retains normal Tab behavior. Label icon-only controls. The dock wraps instead of hiding items; a floating dock needs layout space so it never obscures content or focus.

Source ownership

Add the audited implementation directly into your repository with the CLI:

node /path/to/devvy-ui/packages/cli/src/cli.mjs add dock

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.

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