File tree 1 file changed +11
-9
lines changed
packages/material-ui/src/Divider
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { StandardProps } from '..' ;
2
+ import { OverridableComponent , SimplifiedPropsOf } from '../OverridableComponent ' ;
3
3
4
- export interface DividerProps
5
- extends StandardProps < React . HTMLAttributes < HTMLHRElement > , DividerClassKey > {
6
- absolute ?: boolean ;
7
- component ?: React . ElementType < DividerProps > ;
8
- light ?: boolean ;
9
- variant ?: 'fullWidth' | 'inset' | 'middle' ;
10
- }
4
+ declare const Divider : OverridableComponent < {
5
+ props : {
6
+ absolute ?: boolean ;
7
+ light ?: boolean ;
8
+ variant ?: 'fullWidth' | 'inset' | 'middle' ;
9
+ } ;
10
+ defaultComponent : 'hr' ;
11
+ classKey : DividerClassKey ;
12
+ } > ;
11
13
12
14
export type DividerClassKey = 'root' | 'absolute' | 'inset' | 'light' | 'middle' ;
13
15
14
- declare const Divider : React . ComponentType < DividerProps > ;
16
+ export type DividerProps = SimplifiedPropsOf < typeof Divider > ;
15
17
16
18
export default Divider ;
You can’t perform that action at this time.
0 commit comments