import { SlotProps } from "../types.cjs"; import { ReactNode, Ref } from "react"; import RAC from "react-aria-components"; type RemovedProps = 'isDisabled' | 'isPending' | 'className' | 'style'; export interface ButtonProps extends Omit, SlotProps { /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: 'primary' | 'secondary' | 'destructive' | 'destructive-ghost' | 'ghost' | 'link' | (string & {}); /** * The size of the button. `icon` renders a square, icon-only button and * composes with any `variant` (e.g. `variant="ghost" size="icon"`). * @default 'default' */ size?: 'default' | 'small' | 'large' | 'icon' | (string & {}); /** * If true, the element stretches to fill the available width. * @default false */ fullWidth?: boolean; /** * Children of the component. */ children?: ReactNode; /** * Disables the button. * @default false */ disabled?: RAC.ButtonProps['isDisabled']; /** * Whether the button is in a loading state. * This disables press and hover events while retaining focusability, and announces the loading state to screen readers. */ loading?: RAC.ButtonProps['isPending']; /** Ref to the DOM element the component renders. */ ref?: Ref; } declare const Button: ({ ref: refProp, ...inputProps }: ButtonProps) => import("react").JSX.Element; export { Button };