import { forwardRef } from "react"; /** * Chip * * active: boolean - applies active state; sets aria-pressed when onClick is used * disabled: boolean * icon: ReactNode - leading icon; add aria-hidden="true" if decorative * onClick: function - renders as )} ); // Removable tag - chip itself is not interactive unless onClick also provided if (onClose && !onClick) { return ( {inner} ); } // Toggleable or clickable chip if (onClick) { return ( ); } // Static display chip return ( {inner} ); }); export default Chip; // Internal close icon - always decorative const CloseIcon = () => ( );