A floating toolbar for canvases and editors, as a horizontal bar or a vertical rail.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { FloatRail, FloatRailButton, FloatRailKey, FloatRailNotch, FloatRailReadout } from "@/components/ui/notchset/float-rail";
export function BoardBar({ undo, redo, step, steps }: { undo: () => void; redo: () => void; step: number; steps: number }) {
const [presenting, setPresenting] = React.useState(false);
return (
<FloatRail aria-label="Board">
<FloatRailKey label="Undo" kbd="⌘Z" icon={<span>↶</span>} disabled={step === 0} onClick={undo} />
<FloatRailReadout label="STEP" value={step} />
<FloatRailKey label="Redo" kbd="⇧⌘Z" icon={<span>↷</span>} disabled={step === steps} onClick={redo} />
<FloatRailNotch />
<FloatRailButton live={presenting} onClick={() => setPresenting((p) => !p)}>
{presenting ? "LIVE" : "PRESENT"}
</FloatRailButton>
</FloatRail>
);
}FloatRail orientation–
"horizontal" | "vertical"A bar (tags drop below) or a rail (tags sit beside it; ↑ ↓ move focus).
FloatRailKey label / icon / kbd–
string / ReactNode / stringAn icon key: its name (accessible name and tag), the icon, and a shortcut shown and announced (bind it yourself).
FloatRailKey pressed–
booleanA latching key: stays down while true (aria-pressed).
FloatRailButton children / icon–
string / ReactNodeA labelled key; the label flips when it changes ("SHARE" → "LINK COPIED").
FloatRailButton live / reading–
boolean / ReactNodeLive: signal fill, a blinking node and a reading such as a clock (presenting, recording).
FloatRailReadout label / value–
string / string | numberA reading on the rail; digits roll when it changes.
FloatRailNotch–
-Cuts the rail into groups.
FloatRaildata-slot="float-rail"
The floating toolbar on its plate.
FloatRailKey / FloatRailButtondata-slot="float-rail-key"
Icon keys with tags, and labelled keys that can go live.
FloatRailReadoutdata-slot="float-rail-readout"
A rolling reading.
FloatRailNotchdata-slot="float-rail-notch"
A group divider with its notch.
components/ui/notchset/float-rail.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @notchset-pro/float-railNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-03
First release
Pro is in early access.