import type { ButtonSize, ButtonVariant, PolymorphicComponentPropWithRef } from "./types"; import type { IconComponentType } from "../../Icons"; import type { TooltipWrapperBaseProps } from "../../Overlay/TooltipWrapper/types"; export interface IconButtonBaseProps { /** * The variant of the `IconButton`. * @default neutral */ variant?: ButtonVariant; /** * The size of the `IconButton`. * @default medium */ size?: ButtonSize; /** * Whether the `IconButton` is disabled. */ disabled?: boolean; /** * The icon to display. */ icon: IconComponentType; /** * The title used for the tooltip. */ title: string; /** * Whether to show the tooltip. */ showTooltip?: boolean; /** * The side of the tooltip. * @default top */ tooltipSide?: TooltipWrapperBaseProps["side"]; /** * The delay before showing the tooltip. * @default 500 */ tooltipDelay?: TooltipWrapperBaseProps["delay"]; /** * The delay before hiding the tooltip. * @default 500 */ tooltipHideDelay?: TooltipWrapperBaseProps["hideDelay"]; /** * Whether the `IconButton` is loading. * @default false */ loading?: boolean; /** * The class name of the `IconButton`. */ className?: string; } export type PolymorphicIconButtonProps = PolymorphicComponentPropWithRef; type PolymorphicIconButtonComponent = ((props: PolymorphicIconButtonProps) => React.ReactNode) & { displayName?: string; }; /** * `PolymorphicIconButton` is intended for internal use. * @ignore */ export declare const PolymorphicIconButton: PolymorphicIconButtonComponent; export {};