import { PropsWithChildren } from 'react'; import { FlowComponentProps } from '../../lib/componentFactory/flowComponent'; import { AlphaColor } from '../../lib/types/props'; import * as Aria from "react-aria-components"; export interface ButtonProps extends PropsWithChildren, FlowComponentProps { /** * Slot for button placement in action groups: `primary` (at the end), * `secondary` (before the primary action) or `abort` (at the start). Without * a slot, an action group places the colors primary, success and danger in * `primary` and every other color in `abort`. A secondary-colored button that * does not abort therefore needs `slot="secondary"`. */ slot?: string; /** * The color of the button. * * @default "primary" * @deprecatedValues accent */ color?: "primary" | "success" | "secondary" | "danger" | AlphaColor | "accent"; /** The visual variant of the button. @default "solid" */ variant?: "plain" | "solid" | "soft" | "outline"; /** The size of the button. @default "m" */ size?: "m" | "s"; /** Disables button but keeps it focusable. */ "aria-disabled"?: boolean; /** Whether the button is in a pending state. */ isPending?: boolean; /** Whether the button is in a succeeded state. */ isSucceeded?: boolean; /** Whether the button is in a failed state. */ isFailed?: boolean; /** Whether the button is in a read only state. */ isReadOnly?: boolean; } /** @flr-generate all */ export declare const Button: import('react').FunctionComponent>; export default Button;