mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 10:08:12 +01:00
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
import { Icon, IconProps } from './Icon';
|
|
import { Button, ButtonProps } from './Button';
|
|
|
|
type Props = Omit<IconProps, 'size'> & ButtonProps<typeof Button>;
|
|
|
|
export function IconButton({ icon, spin, ...props }: Props) {
|
|
return (
|
|
<Button className="group" {...props}>
|
|
<Icon icon={icon} spin={spin} className="text-gray-700 group-hover:text-gray-900" />
|
|
</Button>
|
|
);
|
|
}
|