import { ElementType } from 'react'; import { BaseButtonProps, IconComponentProps } from '../Button/Button'; import { PolymorphicComponentPropsWithRef, PolymorphicForwardRefComponent } from '../shared/types'; type Shape = 'circle' | 'square'; export type BaseButtonIconProps = Omit & { accessibilityLabel: string; children?: never; iconName?: string; iconComponent?: IconComponentProps; shape?: Shape; design?: 'solid' | 'minimal'; }; export type ButtonIconProps = PolymorphicComponentPropsWithRef; /** A [Button](/docs/button--docs) styled to have the same width and height, and to only display an icon. ButtonIcon accepts all of the same props as [Button](/docs/button--docs), but does not accept `children`. - `accessibilityLabel` is required to ensure that the button is accessible to screen readers. - In general, use solid icons — not outline icons — inside ButtonIcon. - ButtonIcon doesn't support the `outline` design variant. (We only want to use `solid` or `minimal` icon buttons.) */ export declare const ButtonIcon: PolymorphicForwardRefComponent<"button", BaseButtonIconProps>; export default ButtonIcon;