forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDivider.d.ts
More file actions
82 lines (76 loc) · 2.3 KB
/
Divider.d.ts
File metadata and controls
82 lines (76 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { SxProps } from '@mui/system';
import { Theme } from '../styles';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
import { DividerClasses } from './dividerClasses';
export interface DividerPropsVariantOverrides {}
export interface DividerOwnProps {
/**
* Absolutely position the element.
* @default false
*/
absolute?: boolean | undefined;
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<DividerClasses> | undefined;
/**
* If `true`, a vertical divider will have the correct height when used in flex container.
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
* @default false
*/
flexItem?: boolean | undefined;
/**
* The component orientation.
* @default 'horizontal'
*/
orientation?: 'horizontal' | 'vertical' | undefined;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme> | undefined;
/**
* The text alignment.
* @default 'center'
*/
textAlign?: 'center' | 'right' | 'left' | undefined;
/**
* The variant to use.
* @default 'fullWidth'
*/
variant?:
| OverridableStringUnion<'fullWidth' | 'inset' | 'middle', DividerPropsVariantOverrides>
| undefined;
}
export interface DividerTypeMap<
AdditionalProps = {},
RootComponent extends React.ElementType = 'hr',
> {
props: AdditionalProps & DividerOwnProps;
defaultComponent: RootComponent;
}
/**
*
* Demos:
*
* - [Divider](https://next.mui.com/material-ui/react-divider/)
* - [Lists](https://next.mui.com/material-ui/react-list/)
* - [Menubar](https://next.mui.com/material-ui/react-menubar/)
*
* API:
*
* - [Divider API](https://next.mui.com/material-ui/api/divider/)
*/
declare const Divider: OverridableComponent<DividerTypeMap>;
export type DividerProps<
RootComponent extends React.ElementType = DividerTypeMap['defaultComponent'],
AdditionalProps = {},
> = OverrideProps<DividerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType | undefined;
};
export default Divider;