UNPKG

2.19 kBTypeScriptView Raw
1export interface ToggleButtonGroupClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** State class applied to the root element if `selected={true}`. */
5 selected: string;
6 /** Styles applied to the root element if `orientation="horizontal"`. */
7 horizontal: string;
8 /** Styles applied to the root element if `orientation="vertical"`. */
9 vertical: string;
10 /** State class applied to the root element if `disabled={true}`. */
11 disabled: string;
12 /** Styles applied to the children. */
13 grouped: string;
14 /** Styles applied to the children if `orientation="horizontal"`.
15 * @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
16 */
17 groupedHorizontal: string;
18 /** Styles applied to the children if `orientation="vertical"`.
19 * @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
20 */
21 groupedVertical: string;
22 /** Styles applied to the root element if `fullWidth={true}`. */
23 fullWidth: string;
24 /** Styles applied to the first button in the toggle button group. */
25 firstButton: string;
26 /** Styles applied to the last button in the toggle button group. */
27 lastButton: string;
28 /** Styles applied to buttons in the middle of the toggle button group. */
29 middleButton: string;
30}
31export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
32export declare function getToggleButtonGroupUtilityClass(slot: string): string;
33declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
34export default toggleButtonGroupClasses;