1 | import * as React from 'react';
|
2 | import { OverridableStringUnion } from '@mui/types';
|
3 | import { SxProps } from '@mui/system';
|
4 | import { PropTypes, Theme } from '..';
|
5 | import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
6 | import { OverrideProps } from '../OverridableComponent';
|
7 | import { FabClasses } from './fabClasses';
|
8 |
|
9 | export interface FabPropsVariantOverrides {}
|
10 |
|
11 | export interface FabPropsSizeOverrides {}
|
12 |
|
13 | export interface FabPropsColorOverrides {}
|
14 |
|
15 | export interface FabOwnProps {
|
16 | |
17 |
|
18 |
|
19 | children?: React.ReactNode;
|
20 | |
21 |
|
22 |
|
23 | classes?: Partial<FabClasses>;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | color?: OverridableStringUnion<
|
31 | PropTypes.Color | 'success' | 'error' | 'info' | 'warning',
|
32 | FabPropsColorOverrides
|
33 | >;
|
34 | |
35 |
|
36 |
|
37 |
|
38 | disabled?: boolean;
|
39 | |
40 |
|
41 |
|
42 |
|
43 | disableFocusRipple?: boolean;
|
44 | |
45 |
|
46 |
|
47 | disableRipple?: boolean;
|
48 | |
49 |
|
50 |
|
51 |
|
52 | href?: string;
|
53 | |
54 |
|
55 |
|
56 |
|
57 |
|
58 | size?: OverridableStringUnion<'small' | 'medium' | 'large', FabPropsSizeOverrides>;
|
59 | |
60 |
|
61 |
|
62 |
|
63 | variant?: OverridableStringUnion<'circular' | 'extended', FabPropsVariantOverrides>;
|
64 | |
65 |
|
66 |
|
67 | sx?: SxProps<Theme>;
|
68 | }
|
69 |
|
70 | export type FabTypeMap<
|
71 | AdditionalProps = {},
|
72 | RootComponent extends React.ElementType = 'button',
|
73 | > = ExtendButtonBaseTypeMap<{
|
74 | props: AdditionalProps & FabOwnProps;
|
75 | defaultComponent: RootComponent;
|
76 | }>;
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 | declare const Fab: ExtendButtonBase<FabTypeMap>;
|
90 |
|
91 | export type FabProps<
|
92 | RootComponent extends React.ElementType = FabTypeMap['defaultComponent'],
|
93 | AdditionalProps = {},
|
94 | > = OverrideProps<FabTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
95 | component?: React.ElementType;
|
96 | };
|
97 |
|
98 | export default Fab;
|