import { ToggleButtonProps as RACToggleButtonProps } from 'react-aria-components'; import { ButtonIcon } from '../Button/types'; export type ButtonToggleSize = "medium" | "small" | "xsmall"; type RACToggleButtonPassthrough = Omit; export type ButtonToggleProps = RACToggleButtonPassthrough & { /** * Required accessible name. Visible text for labelled toggles; `aria-label` + * tooltip content when `icon` is a bare icon element. An explicit * `aria-label` wins. Prefer a short imperative over a sentence. */ label: string; /** * Defaults to `medium`. `xsmall` is promoted to a larger minimum target on * coarse pointers, per WCAG 2.5.5. */ size?: ButtonToggleSize; /** Icon-only or label-paired; see {@link ButtonIcon}. */ icon?: ButtonIcon; className?: string; }; export {};