You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/pages/api/app-bar.md
+13-13
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,10 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
24
24
25
25
| Name | Type | Default | Description |
26
26
|:-----|:-----|:--------|:------------|
27
-
| <aclass="anchor-link"id="props--children"></a><ahref="#props--children"class="prop-name">children</a> | <spanclass="prop-type">node</span> || The content of the component. |
28
-
| <aclass="anchor-link"id="props--classes"></a><ahref="#props--classes"class="prop-name">classes</a> | <spanclass="prop-type">object</span> || Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |
29
-
| <aclass="anchor-link"id="props--color"></a><ahref="#props--color"class="prop-name">color</a> | <spanclass="prop-type">'default'<br>| 'inherit'<br>| 'primary'<br>| 'secondary'</span> | <spanclass="prop-default">'primary'</span> | The color of the component. It supports those theme colors that make sense for this component. |
30
-
| <aclass="anchor-link"id="props--position"></a><ahref="#props--position"class="prop-name">position</a> | <spanclass="prop-type">'absolute'<br>| 'fixed'<br>| 'relative'<br>| 'static'<br>| 'sticky'</span> | <spanclass="prop-default">'fixed'</span> | The positioning type. The behavior of the different options is described [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning). Note: `sticky` is not universally supported and will fall back to `static` when unavailable. |
27
+
| <aclass="anchor-link"id="props--children"></a><ahref="#props--children"title="link to the prop on this page"class="prop-name">children</a> | <spanclass="prop-type">node</span> || The content of the component. |
28
+
| <aclass="anchor-link"id="props--classes"></a><ahref="#props--classes"title="link to the prop on this page"class="prop-name">classes</a> | <spanclass="prop-type">object</span> || Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |
29
+
| <aclass="anchor-link"id="props--color"></a><ahref="#props--color"title="link to the prop on this page"class="prop-name">color</a> | <spanclass="prop-type">'default'<br>| 'inherit'<br>| 'primary'<br>| 'secondary'</span> | <spanclass="prop-default">'primary'</span> | The color of the component. It supports those theme colors that make sense for this component. |
30
+
| <aclass="anchor-link"id="props--position"></a><ahref="#props--position"title="link to the prop on this page"class="prop-name">position</a> | <spanclass="prop-type">'absolute'<br>| 'fixed'<br>| 'relative'<br>| 'static'<br>| 'sticky'</span> | <spanclass="prop-default">'fixed'</span> | The positioning type. The behavior of the different options is described [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning). Note: `sticky` is not universally supported and will fall back to `static` when unavailable. |
31
31
32
32
The `ref` is forwarded to the root element.
33
33
@@ -40,15 +40,15 @@ Any other props supplied will be provided to the root element ([Paper](/api/pape
40
40
41
41
| Rule name | Global class | Description |
42
42
|:-----|:-------------|:------------|
43
-
| <aclass="anchor-link"id="css--root"></a><ahref="#css--root"class="prop-name">root</a> | <spanclass="prop-name">.MuiAppBar-root</span> | Styles applied to the root element.
44
-
| <aclass="anchor-link"id="css--positionFixed"></a><ahref="#css--positionFixed"class="prop-name">positionFixed</a> | <spanclass="prop-name">.MuiAppBar-positionFixed</span> | Styles applied to the root element if `position="fixed"`.
45
-
| <aclass="anchor-link"id="css--positionAbsolute"></a><ahref="#css--positionAbsolute"class="prop-name">positionAbsolute</a> | <spanclass="prop-name">.MuiAppBar-positionAbsolute</span> | Styles applied to the root element if `position="absolute"`.
46
-
| <aclass="anchor-link"id="css--positionSticky"></a><ahref="#css--positionSticky"class="prop-name">positionSticky</a> | <spanclass="prop-name">.MuiAppBar-positionSticky</span> | Styles applied to the root element if `position="sticky"`.
47
-
| <aclass="anchor-link"id="css--positionStatic"></a><ahref="#css--positionStatic"class="prop-name">positionStatic</a> | <spanclass="prop-name">.MuiAppBar-positionStatic</span> | Styles applied to the root element if `position="static"`.
48
-
| <aclass="anchor-link"id="css--positionRelative"></a><ahref="#css--positionRelative"class="prop-name">positionRelative</a> | <spanclass="prop-name">.MuiAppBar-positionRelative</span> | Styles applied to the root element if `position="relative"`.
49
-
| <aclass="anchor-link"id="css--colorDefault"></a><ahref="#css--colorDefault"class="prop-name">colorDefault</a> | <spanclass="prop-name">.MuiAppBar-colorDefault</span> | Styles applied to the root element if `color="default"`.
50
-
| <aclass="anchor-link"id="css--colorPrimary"></a><ahref="#css--colorPrimary"class="prop-name">colorPrimary</a> | <spanclass="prop-name">.MuiAppBar-colorPrimary</span> | Styles applied to the root element if `color="primary"`.
51
-
| <aclass="anchor-link"id="css--colorSecondary"></a><ahref="#css--colorSecondary"class="prop-name">colorSecondary</a> | <spanclass="prop-name">.MuiAppBar-colorSecondary</span> | Styles applied to the root element if `color="secondary"`.
43
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--root"></a><ahref="#css--root"class="prop-name">root</a> | <spanclass="prop-name">.MuiAppBar-root</span> | Styles applied to the root element.
44
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--positionFixed"></a><ahref="#css--positionFixed"class="prop-name">positionFixed</a> | <spanclass="prop-name">.MuiAppBar-positionFixed</span> | Styles applied to the root element if `position="fixed"`.
45
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--positionAbsolute"></a><ahref="#css--positionAbsolute"class="prop-name">positionAbsolute</a> | <spanclass="prop-name">.MuiAppBar-positionAbsolute</span> | Styles applied to the root element if `position="absolute"`.
46
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--positionSticky"></a><ahref="#css--positionSticky"class="prop-name">positionSticky</a> | <spanclass="prop-name">.MuiAppBar-positionSticky</span> | Styles applied to the root element if `position="sticky"`.
47
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--positionStatic"></a><ahref="#css--positionStatic"class="prop-name">positionStatic</a> | <spanclass="prop-name">.MuiAppBar-positionStatic</span> | Styles applied to the root element if `position="static"`.
48
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--positionRelative"></a><ahref="#css--positionRelative"class="prop-name">positionRelative</a> | <spanclass="prop-name">.MuiAppBar-positionRelative</span> | Styles applied to the root element if `position="relative"`.
49
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--colorDefault"></a><ahref="#css--colorDefault"class="prop-name">colorDefault</a> | <spanclass="prop-name">.MuiAppBar-colorDefault</span> | Styles applied to the root element if `color="default"`.
50
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--colorPrimary"></a><ahref="#css--colorPrimary"class="prop-name">colorPrimary</a> | <spanclass="prop-name">.MuiAppBar-colorPrimary</span> | Styles applied to the root element if `color="primary"`.
51
+
| <aclass="anchor-link"title="link to the rule name on this page"id="css--colorSecondary"></a><ahref="#css--colorSecondary"class="prop-name">colorSecondary</a> | <spanclass="prop-name">.MuiAppBar-colorSecondary</span> | Styles applied to the root element if `color="secondary"`.
52
52
53
53
You can override the style of the component thanks to one of these customization points:
0 commit comments