1 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
2 |
|
3 | export interface DividerTypeMap<P = {}, D extends React.ElementType = 'hr'> {
|
4 | props: P & {
|
5 | |
6 |
|
7 |
|
8 | absolute?: boolean;
|
9 | |
10 |
|
11 |
|
12 |
|
13 | flexItem?: boolean;
|
14 | |
15 |
|
16 |
|
17 | light?: boolean;
|
18 | |
19 |
|
20 |
|
21 | orientation?: 'horizontal' | 'vertical';
|
22 | |
23 |
|
24 |
|
25 | variant?: 'fullWidth' | 'inset' | 'middle';
|
26 | };
|
27 | defaultComponent: D;
|
28 | classKey: DividerClassKey;
|
29 | }
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | declare const Divider: OverridableComponent<DividerTypeMap>;
|
43 |
|
44 | export type DividerClassKey = 'root' | 'absolute' | 'inset' | 'light' | 'middle' | 'vertical';
|
45 |
|
46 | export type DividerProps<
|
47 | D extends React.ElementType = DividerTypeMap['defaultComponent'],
|
48 | P = {}
|
49 | > = OverrideProps<DividerTypeMap<P, D>, D>;
|
50 |
|
51 | export default Divider;
|