Tool Rail

Fixed icon-over-label edge rail for switching tools or modes.

Installation

Install with the CLI, or copy the component source into your project.

Add nav-rail (npm)

npx --yes -p github:itsvigneshv/default-file-ui#main df-ui add nav-rail

Left rail

Fixed icon-over-label strip on the left edge with an active item and a group separator.

Workspace

Top rail

Horizontal rail on the top edge. width sets the rail height on top and bottom.

Workspace

Bottom rail

Horizontal rail on the bottom edge with a y-axis edge shadow.

Canvas

Compose items

Add or omit items, place separators anywhere, and use hidden or disabled for availability.

Compose, hide, and disable items.

Appearance

Override width, background, border, icon color, active plate, edge shadow intensity, and corner radii with props.

Appearance props

Properties

Tool rail: fixed icon-over-label edge chrome for switching tools or modes. Compose items and separators in any order. Place on left, right, top, or bottom. Use edgeShadow with shadowIntensity (2xs to 4xl, subtle, default, strong, or 0 to 1) for a side-matched cast. Chrome is tokenized via --df-nav-rail-* and kit --df-shadow-intensity-* steps.