/** IconButton — a square, icon-only button (close ×, toolbar actions) (LD). */ import { forwardRef } from "react"; import { cn } from "../lib/cn"; export type IconButtonSize = "sm" | "md"; export interface IconButtonProps extends React.ButtonHTMLAttributes { /** Required accessible name (icon-only buttons have no text). */ "aria-label": string; /** Control size. Defaults to `md`. */ size?: IconButtonSize; } const SIZES: Record = { sm: "h-6 w-6 text-xs", md: "h-8 w-8 text-sm", }; /** A compact, icon-only button styled as a ghost control. */ export const IconButton = forwardRef(function IconButton( { size = "md", className, children, ...rest }, ref, ) { return ( ); });