import * as React from 'react'; import { InternalStandardProps as StandardProps } from '..'; export interface ToggleButtonGroupProps extends StandardProps, 'onChange' | 'children'> { /** * The content of the button. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: { /** Styles applied to the root element. */ root?: string; /** Styles applied to the root element if `orientation="vertical"`. */ vertical?: string; /** Styles applied to the children. */ grouped?: string; /** Styles applied to the children if `orientation="horizontal"`. */ groupedHorizontal?: string; /** Styles applied to the children if `orientation="vertical"`. */ groupedVertical?: string; }; /** * If `true`, only allow one of the child ToggleButton values to be selected. * @default false */ exclusive?: boolean; /** * Callback fired when the value changes. * * @param {object} event The event source of the callback. * @param {any} value of the selected buttons. When `exclusive` is true * this is a single value; when false an array of selected values. If no value * is selected and `exclusive` is true the value is null; when false an empty array. */ onChange?: (event: React.MouseEvent, value: any) => void; /** * The group orientation (layout flow direction). * @default 'horizontal' */ orientation?: 'horizontal' | 'vertical'; /** * The size of the buttons. * @default 'medium' */ size?: 'small' | 'medium' | 'large'; /** * The currently selected value within the group or an array of selected * values when `exclusive` is false. * * The value must have reference equality with the option in order to be selected. */ value?: any; } export type ToggleButtonGroupClassKey = keyof NonNullable; /** * * Demos: * * - [Toggle Button](https://material-ui.com/components/toggle-button/) * * API: * * - [ToggleButtonGroup API](https://material-ui.com/api/toggle-button-group/) */ export default function ToggleButtonGroup(props: ToggleButtonGroupProps): JSX.Element;