import * as React from 'react'; import { GetClasses } from '../../typeUtils'; import 'focus-visible'; export declare const ButtonStylesKey = "ChromaButton"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"text" | "root" | "icon" | "fullWidth" | "containedInverse" | "outlined" | "outlinedInverse" | "textInverse" | "containedNegative" | "containedPositive" | "outlinedNegative" | "outlinedPositive" | "textNegative" | "textPositive" | "trailingIcon">; export declare type ButtonClasses = GetClasses; export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> { children?: React.ReactNode; color?: 'default' | 'inverse' | 'negative' | 'positive'; disabled?: boolean; fullWidth?: boolean; icon?: React.MemoExoticComponent<(props: React.SVGProps) => JSX.Element>; variant?: 'contained' | 'outlined' | 'text'; trailingIcon?: React.MemoExoticComponent<(props: React.SVGProps) => JSX.Element>; } /** A typical Button component. ### Accessibility - The Button has `type="button"`. - Pressing `Tab` will set focus to the element - Pressing `Space` or `Enter` triggers the click action. - When the Button has focus, Space and Enter keys activates it. - When the Button is disabled, the tabIndex is set to `-1`. - The icon of Button has `role="img"` and `aria-hidden` attributes so that it does not get picked up by screen readers. ### Links - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/Button/Button.tsx) - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/Button/Button.stories.tsx) */ export declare const Button: React.ForwardRefExoticComponent>;