1 | import { PropTypes } from '..';
|
2 | import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
3 | import { OverrideProps } from '../OverridableComponent';
|
4 |
|
5 | export type IconButtonTypeMap<
|
6 | P = {},
|
7 | D extends React.ElementType = 'button'
|
8 | > = ExtendButtonBaseTypeMap<{
|
9 | props: P & {
|
10 | color?: PropTypes.Color;
|
11 | disableFocusRipple?: boolean;
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | edge?: 'start' | 'end' | false;
|
19 | size?: 'small' | 'medium';
|
20 | };
|
21 | defaultComponent: D;
|
22 | classKey: IconButtonClassKey;
|
23 | }>;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | declare const IconButton: ExtendButtonBase<IconButtonTypeMap>;
|
38 |
|
39 | export type IconButtonClassKey =
|
40 | | 'root'
|
41 | | 'edgeStart'
|
42 | | 'edgeEnd'
|
43 | | 'colorInherit'
|
44 | | 'colorPrimary'
|
45 | | 'colorSecondary'
|
46 | | 'disabled'
|
47 | | 'sizeSmall'
|
48 | | 'label';
|
49 |
|
50 | export type IconButtonProps<
|
51 | D extends React.ElementType = IconButtonTypeMap['defaultComponent'],
|
52 | P = {}
|
53 | > = OverrideProps<IconButtonTypeMap<P, D>, D>;
|
54 |
|
55 | export default IconButton;
|