import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react"; import { PolymorphicComponent } from "../../polymorphic"; type ActionButtonBaseProps = { /** * Icon to display in the action item. Usually a React component. */ icon: React.ReactNode; /** * Title of the action item */ title: string; /** * Description text for the action item */ description: string; /** * If provided, the action item will be rendered as an anchor tag */ href?: string; /** * Additional class names */ className?: string; /** * Click handler */ onClick?: React.MouseEventHandler; /** * Whether the item is disabled */ disabled?: boolean; }; type ActionButtonButtonProps = ActionButtonBaseProps & Omit, "children"> & { as?: "button"; href?: string; }; type ActionButtonAnchorProps = ActionButtonBaseProps & Omit, "children" | "type"> & { as?: "a"; href?: string; }; export type ActionButtonProps = ActionButtonButtonProps | ActionButtonAnchorProps; type PolymorphicActionButton = PolymorphicComponent<"button" | "a", ActionButtonProps>; export declare const ActionButton: PolymorphicActionButton; export {}; //# sourceMappingURL=ActionButton.d.ts.map