({
className,
Icon,
size = 16,
...props
}: IconButtonProps)
| 8 | size?: number |
| 9 | } |
| 10 | export function IconButton({ |
| 11 | className, |
| 12 | Icon, |
| 13 | size = 16, |
| 14 | ...props |
| 15 | }: IconButtonProps) { |
| 16 | return ( |
| 17 | <button className={clsx('relative block p-0.5', className)} {...props}> |
| 18 | <StateLayer /> |
| 19 | <Icon size={size} /> |
| 20 | </button> |
| 21 | ) |
| 22 | } |
| 23 | |
| 24 | const variantMap = { |
| 25 | primary: 'bg-primary-container text-on-primary-container', |
nothing calls this directly
no outgoing calls
no test coverage detected