diff --git a/docs/pages/api/container.md b/docs/pages/api/container.md index 3a4326153d678e..5f55348f4bc7ec 100644 --- a/docs/pages/api/container.md +++ b/docs/pages/api/container.md @@ -37,6 +37,7 @@ Any other props supplied will be provided to the root element (native element). ## CSS +<<<<<<< HEAD - Style sheet name: `MuiContainer`. - Style sheet details: @@ -58,6 +59,33 @@ You can override the style of the component thanks to one of these customization - With a theme and an [`overrides` property](/customization/globals/#css). If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Container/Container.js) for more detail. +======= +You can override all the class names injected by Material-UI thanks to the `classes` prop. +This prop accepts the following keys: + + +| Name | Description | +|:-----|:------------| +| root | Styles applied to the root element. +| gutters | Styles applied to the root element if `disableGutters={false}`. +| fixed | Styles applied to the root element if `fixed={true}`. +| maxWidthXs | Styles applied to the root element if `maxWidth="xs"`. +| maxWidthSm | Styles applied to the root element if `maxWidth="sm"`. +| maxWidthMd | Styles applied to the root element if `maxWidth="md"`. +| maxWidthLg | Styles applied to the root element if `maxWidth="lg"`. +| maxWidthXl | Styles applied to the root element if `maxWidth="xl"`. + +Have a look at the [overriding styles with classes](/customization/components/#overriding-styles-with-classes) section +and the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Container/Container.js) +for more detail. + +If using the `overrides` [key of the theme](/customization/themes/#css), +you need to use the following style sheet name: `MuiContainer`. + +## Notes + +The component is fully [StrictMode](https://reactjs.org/docs/strict-mode.html) compatible. +>>>>>>> update the API wording to target the root ## Demos