UNPKG

10.6 kBTypeScriptView Raw
1export interface ButtonGroupClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if `variant="contained"`. */
5 contained: string;
6 /** Styles applied to the root element if `variant="outlined"`. */
7 outlined: string;
8 /** Styles applied to the root element if `variant="text"`. */
9 text: string;
10 /** Styles applied to the root element if `disableElevation={true}`. */
11 disableElevation: string;
12 /** State class applied to the child elements if `disabled={true}`. */
13 disabled: string;
14 /** Styles applied to the first button in the button group. */
15 firstButton: string;
16 /** Styles applied to the root element if `fullWidth={true}`. */
17 fullWidth: string;
18 /** Styles applied to the root element if `orientation="horizontal"`. */
19 horizontal: string;
20 /** Styles applied to the root element if `orientation="vertical"`. */
21 vertical: string;
22 /** Styles applied to the children. */
23 grouped: string;
24 /** Styles applied to the root element if `color="primary"` */
25 colorPrimary: string;
26 /** Styles applied to the root element if `color="secondary"` */
27 colorSecondary: string;
28 /** Styles applied to the children if `orientation="horizontal"`.
29 * @deprecated Combine the [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
30 */
31 groupedHorizontal: string;
32 /** Styles applied to the children if `orientation="vertical"`.
33 * @deprecated Combine the [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
34 */
35 groupedVertical: string;
36 /** Styles applied to the children if `variant="text"`.
37 * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
38 */
39 groupedText: string;
40 /** Styles applied to the children if `variant="text"` and `orientation="horizontal"`.
41 * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
42 */
43 groupedTextHorizontal: string;
44 /** Styles applied to the children if `variant="text"` and `orientation="vertical"`.
45 * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
46 */
47 groupedTextVertical: string;
48 /** Styles applied to the children if `variant="text"` and `color="primary"`.
49 * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
50 */
51 groupedTextPrimary: string;
52 /** Styles applied to the children if `variant="text"` and `color="secondary"`.
53 * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
54 */
55 groupedTextSecondary: string;
56 /** Styles applied to the children if `variant="outlined"`.
57 * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
58 */
59 groupedOutlined: string;
60 /** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`.
61 * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
62 */
63 groupedOutlinedHorizontal: string;
64 /** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`.
65 * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
66 */
67 groupedOutlinedVertical: string;
68 /** Styles applied to the children if `variant="outlined"` and `color="primary"`.
69 * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
70 */
71 groupedOutlinedPrimary: string;
72 /** Styles applied to the children if `variant="outlined"` and `color="secondary"`.
73 * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74 */
75 groupedOutlinedSecondary: string;
76 /** Styles applied to the children if `variant="contained"`.
77 * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
78 */
79 groupedContained: string;
80 /** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`.
81 * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
82 */
83 groupedContainedHorizontal: string;
84 /** Styles applied to the children if `variant="contained"` and `orientation="vertical"`.
85 * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
86 */
87 groupedContainedVertical: string;
88 /** Styles applied to the children if `variant="contained"` and `color="primary"`.
89 * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
90 */
91 groupedContainedPrimary: string;
92 /** Styles applied to the children if `variant="contained"` and `color="secondary"`.
93 * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
94 */
95 groupedContainedSecondary: string;
96 /** Styles applied to the last button in the button group. */
97 lastButton: string;
98 /** Styles applied to buttons in the middle of the button group. */
99 middleButton: string;
100}
101export type ButtonGroupClassKey = keyof ButtonGroupClasses;
102export declare function getButtonGroupUtilityClass(slot: string): string;
103declare const buttonGroupClasses: ButtonGroupClasses;
104export default buttonGroupClasses;