import React from 'react'; import type { MouseEvent } from 'react'; import type { DefaultProps } from '../../types'; export interface IconButtonProps extends DefaultProps { color?: 'inherit' | 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'; role?: string; disabled?: boolean; 'data-testid'?: string; /** * Accessible name. Falls back to `name` when the button has no text of * its own — an icon alone leaves it unnamed, since the icon itself is * `aria-hidden` (WCAG 4.1.2). Never applied over a text child, which * already names the button. */ 'aria-label'?: string; size?: 'small' | 'medium' | 'large'; onClick?(event: MouseEvent): void; } declare const IconButton: ({ children, padding, margin, size, style, ...otherProps }: IconButtonProps) => React.JSX.Element; export default IconButton;