import { useId, type ComponentPropsWithoutRef } from 'react'; import { cx } from '../utils'; export const Spinner = ({ size, className, ...props }: ComponentPropsWithoutRef<'span'> & { size?: 'sm' | 'lg' }) => { const uid = useId(); const grooveId = `modern-sk-groove-${uid}`; const glowId = `modern-sk-glow-${uid}`; return ( {/* Carved channel: flat ring sunk by a top inner shadow — like the switch well. */} {/* Soft round glow — generous region so it never clips to a square. */} ); };