@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
10 lines (9 loc) • 494 B
TypeScript
import * as React from 'react';
import { ButtonProps } from './Button';
export interface IconButtonProps extends Omit<ButtonProps, 'iconSpacing' | 'iconBefore' | 'iconAfter' | 'isFullWidth' | 'loadingText'> {
/** Icon shown inside the button. */
icon?: React.ReactElement;
/** If `true`, the icon button will be rounded. */
isRound?: boolean;
}
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;