/** Toolbar — a thin horizontal action bar (LD). */ import { cn } from "../lib/cn"; export interface ToolbarProps extends React.HTMLAttributes { /** Push trailing children to the right with an auto margin. */ justify?: "start" | "between" | "end"; } const JUSTIFY = { start: "justify-start", between: "justify-between", end: "justify-end", } as const; /** A flex row for grouping buttons/controls with consistent spacing. */ export function Toolbar({ justify = "start", className, children, ...rest }: ToolbarProps) { return (
{children}
); }