1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableStringUnion } from '@mui/types';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { Theme } from '..';
|
6 | import { ButtonGroupClasses } from './buttonGroupClasses';
|
7 |
|
8 | export interface ButtonGroupPropsColorOverrides {}
|
9 | export interface ButtonGroupPropsVariantOverrides {}
|
10 | export interface ButtonGroupPropsSizeOverrides {}
|
11 |
|
12 | export interface ButtonGroupOwnProps {
|
13 | |
14 |
|
15 |
|
16 | children?: React.ReactNode;
|
17 | |
18 |
|
19 |
|
20 | classes?: Partial<ButtonGroupClasses>;
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | color?: OverridableStringUnion<
|
28 | 'inherit' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
|
29 | ButtonGroupPropsColorOverrides
|
30 | >;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | disabled?: boolean;
|
36 | |
37 |
|
38 |
|
39 |
|
40 | disableElevation?: boolean;
|
41 | |
42 |
|
43 |
|
44 |
|
45 | disableFocusRipple?: boolean;
|
46 | |
47 |
|
48 |
|
49 |
|
50 | disableRipple?: boolean;
|
51 | |
52 |
|
53 |
|
54 |
|
55 | fullWidth?: boolean;
|
56 | |
57 |
|
58 |
|
59 |
|
60 | orientation?: 'vertical' | 'horizontal';
|
61 | |
62 |
|
63 |
|
64 |
|
65 |
|
66 | size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonGroupPropsSizeOverrides>;
|
67 | |
68 |
|
69 |
|
70 |
|
71 | variant?: OverridableStringUnion<
|
72 | 'text' | 'outlined' | 'contained',
|
73 | ButtonGroupPropsVariantOverrides
|
74 | >;
|
75 | |
76 |
|
77 |
|
78 | sx?: SxProps<Theme>;
|
79 | }
|
80 |
|
81 | export interface ButtonGroupTypeMap<
|
82 | AdditionalProps = {},
|
83 | RootComponent extends React.ElementType = 'div',
|
84 | > {
|
85 | props: AdditionalProps & ButtonGroupOwnProps;
|
86 | defaultComponent: RootComponent;
|
87 | }
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 | declare const ButtonGroup: OverridableComponent<ButtonGroupTypeMap>;
|
100 |
|
101 | export type ButtonGroupProps<
|
102 | RootComponent extends React.ElementType = ButtonGroupTypeMap['defaultComponent'],
|
103 | AdditionalProps = {},
|
104 | > = OverrideProps<ButtonGroupTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
105 | component?: React.ElementType;
|
106 | };
|
107 |
|
108 | export default ButtonGroup;
|