import { cn } from '../../lib/cn' export type SpinnerSize = 'sm' | 'md' const SIZES: Record = { sm: 'size-3.5 border-[1.5px]', md: 'size-4 border-2', } export interface SpinnerProps { size?: SpinnerSize /** Accessible description; omit inside a control that already announces busy. */ label?: string /** Merged last, so it wins. */ className?: string } /** * Busy indicator. Inherits `currentColor`, so it reads correctly on every * Button variant without a tone prop of its own. */ export function Spinner({ size = 'md', label, className }: SpinnerProps) { return ( ) }