1 | import { PropTypes } from '..';
|
2 | import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
3 | import { OverrideProps } from '../OverridableComponent';
|
4 |
|
5 | export type FabTypeMap<P = {}, D extends React.ElementType = 'button'> = ExtendButtonBaseTypeMap<{
|
6 | props: P & {
|
7 | |
8 |
|
9 |
|
10 | children: NonNullable<React.ReactNode>;
|
11 | |
12 |
|
13 |
|
14 | color?: PropTypes.Color;
|
15 | |
16 |
|
17 |
|
18 | disabled?: boolean;
|
19 | |
20 |
|
21 |
|
22 | disableFocusRipple?: boolean;
|
23 | |
24 |
|
25 |
|
26 | disableRipple?: boolean;
|
27 | |
28 |
|
29 |
|
30 |
|
31 | href?: string;
|
32 | |
33 |
|
34 |
|
35 |
|
36 | size?: 'small' | 'medium' | 'large';
|
37 | |
38 |
|
39 |
|
40 | variant?: 'round' | 'extended';
|
41 | };
|
42 | defaultComponent: D;
|
43 | classKey: FabClassKey;
|
44 | }>;
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | declare const Fab: ExtendButtonBase<FabTypeMap>;
|
58 |
|
59 | export type FabProps<
|
60 | D extends React.ElementType = FabTypeMap['defaultComponent'],
|
61 | P = {}
|
62 | > = OverrideProps<FabTypeMap<P, D>, D>;
|
63 |
|
64 | export type FabClassKey =
|
65 | | 'root'
|
66 | | 'label'
|
67 | | 'primary'
|
68 | | 'secondary'
|
69 | | 'extended'
|
70 | | 'focusVisible'
|
71 | | 'disabled'
|
72 | | 'colorInherit'
|
73 | | 'sizeSmall'
|
74 | | 'sizeMedium';
|
75 |
|
76 | export default Fab;
|