import { HTMLAttributes } from 'react'; import { ImageName } from '../Icon'; export type IconButtonSize = 'default' | 'sm' | 'xs'; export interface IconButtonProps extends HTMLAttributes { size?: 'default' | 'sm' | 'xs'; disabled?: boolean; /** The visual style variant of the button */ type?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'info'; /** Used for native button type attribute */ htmlType?: React.ButtonHTMLAttributes['type']; icon: ImageName; }