Header editor to pair editor

This commit is contained in:
Gregory Schier
2023-03-15 08:09:45 -07:00
parent e2e25dc30b
commit 321941baab
8 changed files with 66 additions and 47 deletions

View File

@@ -5,7 +5,8 @@ import { Button } from './Button';
import type { IconProps } from './Icon';
import { Icon } from './Icon';
type Props = IconProps & ButtonProps & { iconClassName?: string; iconSize?: IconProps['size'] };
type Props = IconProps &
ButtonProps & { iconClassName?: string; iconSize?: IconProps['size']; title: string };
export const IconButton = forwardRef<HTMLButtonElement, Props>(function IconButton(
{ icon, spin, className, iconClassName, size = 'md', iconSize, ...props }: Props,