goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
20 lines • 901 B
TypeScript
import { default as React } from 'react';
import { ButtonProps } from '../Button';
export interface IconButtonProps extends Omit<ButtonProps, 'text'> {
/**
* Size of the icon button. `'xsmall'` (20px) is used for inline micro
* actions like the per-row delete button on a draggable PDF field —
* smaller than `'small'` (32px) which is the default control-row size.
*/
size?: 'xsmall' | 'small' | 'medium' | 'large';
/** Color scheme for the button */
color?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | 'default';
/** The icon element to display */
children: React.ReactNode;
}
/**
* A button component specifically designed for icon-only usage.
*/
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
export default IconButton;
//# sourceMappingURL=index.d.ts.map