Skip to content

Commit 8b5fb3c

Browse files
queengooborgeps1lon
authored andcommitted
[Divider] Migrate to emotion (mui#24558)
1 parent cddb12b commit 8b5fb3c

File tree

9 files changed

+269
-150
lines changed

9 files changed

+269
-150
lines changed

docs/pages/api-docs/divider.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": { "name": "enum", "description": "'horizontal'<br>&#124;&nbsp;'vertical'" },
1111
"default": "'horizontal'"
1212
},
13+
"sx": { "type": { "name": "object" } },
1314
"textAlign": {
1415
"type": {
1516
"name": "enum",
@@ -51,6 +52,6 @@
5152
"filename": "/packages/material-ui/src/Divider/Divider.js",
5253
"inheritance": null,
5354
"demos": "<ul><li><a href=\"/components/dividers/\">Dividers</a></li>\n<li><a href=\"/components/lists/\">Lists</a></li></ul>",
54-
"styledComponent": false,
55+
"styledComponent": true,
5556
"cssComponent": false
5657
}

docs/translations/api-docs/divider/divider.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"flexItem": "If <code>true</code>, a vertical divider will have the correct height when used in flex container. (By default, a vertical divider will have a calculated height of <code>0px</code> if it is the child of a flex container.)",
99
"light": "If <code>true</code>, the divider will have a lighter color.",
1010
"orientation": "The component orientation.",
11+
"sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the <a href=\"/system/basics/#the-sx-prop\">`sx` page</a> for more details.",
1112
"textAlign": "The text alignment.",
1213
"variant": "The variant to use."
1314
},

packages/material-ui/src/Divider/Divider.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { OverridableStringUnion } from '@material-ui/types';
2+
import { SxProps } from '@material-ui/system';
3+
import { Theme } from '..';
24
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
35

46
export interface DividerPropsVariantOverrides {}
@@ -64,6 +66,10 @@ export interface DividerTypeMap<P = {}, D extends React.ElementType = 'hr'> {
6466
* @default 'horizontal'
6567
*/
6668
orientation?: 'horizontal' | 'vertical';
69+
/**
70+
* The system prop that allows defining system overrides as well as additional CSS styles.
71+
*/
72+
sx?: SxProps<Theme>;
6773
/**
6874
* The text alignment.
6975
* @default 'center'

0 commit comments

Comments
 (0)