A row of icon actions where labels appear on hover or focus and each confirms in place.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { ActionRail } from "@/components/ui/notchset/action-rail";
export function MessageActions({ reply, archive, remove }: { reply: () => void; archive: () => void; remove: () => void }) {
return (
<ActionRail
aria-label="Message actions"
actions={[
{ id: "reply", label: "REPLY", icon: <span>↩</span>, intent: "primary", onSelect: reply },
{ id: "archive", label: "ARCHIVE", icon: <span>▤</span>, doneLabel: "ARCHIVED", onSelect: () => (archive(), "MOVED TO ARCHIVE") },
{ id: "delete", label: "DELETE", icon: <span>✕</span>, intent: "danger", doneLabel: "DELETED", onSelect: () => (remove(), "MOVED TO TRASH") },
]}
/>
);
}actions–
{ id, label, icon, doneLabel?, intent?, pressed?, onSelect? }[]In order; the primary (intent "primary") keeps its name. onSelect may return a sentence for the status line.
intent–
"primary" | "danger" | "toggle"Primary is ink and always named; danger asks twice; toggle reports aria-pressed from `pressed`.
confirmDelete–
booleanDanger actions ask twice. Default true.
status–
booleanThe status line under the rail. Default true.
labels–
{ armed, armedStatus, cancelled, hint }Every word, for other languages.
ActionRaildata-slot="action-rail"
The keys on their plate and the status line.
Keydata-slot="action-rail-key"
One action: icon, travelling label and its result.
components/ui/notchset/action-rail.tsx
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/action-rail.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/action-rail.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
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://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-03
First release