Left Rail
Compact vertical rail for canvas modes, tool actions, and secondary navigation controls. Install Left Rail from the VLLNT UI registry with the shadcn CLI.
Compact vertical rail for canvas modes, tool actions, and secondary navigation controls. Part of the navigation family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.
Preview
Switch between light and dark to inspect the embedded Storybook preview.
Installation
Add Left Rail to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:
pnpm dlx shadcn@latest add https://ui.vllnt.ai/r/left-rail.jsonSource
import type { ReactNode } from "react";
import { cn } from "../../lib/utils";
export type LeftRailProps = React.ComponentPropsWithoutRef<"aside"> & {
footer?: ReactNode;
title?: ReactNode;
};
const LeftRail = ({
children,
className,
footer,
ref,
title,
...props
}: LeftRailProps & { ref?: React.Ref<HTMLElement> }) => (
<aside
className={cn(
"flex h-full w-[4.5rem] shrink-0 flex-col items-center gap-3 border-r border-border bg-background px-2 py-3",
className,
)}
ref={ref}
{...props}
>
{title ? (
<div className="flex min-h-9 items-center text-[11px] font-medium uppercase tracking-[0.24em] text-muted-foreground">
{title}
</div>
) : null}
<div className="flex w-full flex-1 flex-col items-center gap-2">
{children}
</div>
{footer ? (
<div className="flex w-full flex-col items-center gap-2">{footer}</div>
) : null}
</aside>
);
LeftRail.displayName = "LeftRail";
export { LeftRail };
Stories
Explore every variant and state in the interactive Storybook:
Preview
Switch between light and dark to inspect the embedded Storybook preview.