Paper API
API reference docs for the React Paper component. Learn about the props, CSS, and other APIs of this exported module.
Component demos
Import
import Paper from '@mui/material/Paper';
// or
import { Paper } from '@mui/material';
Props of the native component are also available.
Name | Type | Default | Description |
---|---|---|---|
children | node | The content of the component. | |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. | |
component | elementType | The component used for the root node. Either a string to use a HTML element or a component. | |
elevation | integer | 1 | Shadow depth, corresponds to |
square | bool | false | If |
sx | Array<func | object | bool> | func | object | The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details. | |
variant | 'elevation' | 'outlined' | string | 'elevation' | The variant to use. |
ref
is forwarded to the root element.Theme default props
You can use MuiPaper
to change the default props of this component with the theme.
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
Class name | Rule name | Description |
---|---|---|
.MuiPaper-elevation | elevation | Styles applied to the root element if variant="elevation" . |
.MuiPaper-elevation0 | elevation0 | Styles applied to the root element if elevation={0} . |
.MuiPaper-elevation1 | elevation1 | Styles applied to the root element if elevation={1} . |
.MuiPaper-elevation10 | elevation10 | Styles applied to the root element if elevation={10} . |
.MuiPaper-elevation11 | elevation11 | Styles applied to the root element if elevation={11} . |
.MuiPaper-elevation12 | elevation12 | Styles applied to the root element if elevation={12} . |
.MuiPaper-elevation13 | elevation13 | Styles applied to the root element if elevation={13} . |
.MuiPaper-elevation14 | elevation14 | Styles applied to the root element if elevation={14} . |
.MuiPaper-elevation15 | elevation15 | Styles applied to the root element if elevation={15} . |
.MuiPaper-elevation16 | elevation16 | Styles applied to the root element if elevation={16} . |
.MuiPaper-elevation17 | elevation17 | Styles applied to the root element if elevation={17} . |
.MuiPaper-elevation18 | elevation18 | Styles applied to the root element if elevation={18} . |
.MuiPaper-elevation19 | elevation19 | Styles applied to the root element if elevation={19} . |
.MuiPaper-elevation2 | elevation2 | Styles applied to the root element if elevation={2} . |
.MuiPaper-elevation20 | elevation20 | Styles applied to the root element if elevation={20} . |
.MuiPaper-elevation21 | elevation21 | Styles applied to the root element if elevation={21} . |
.MuiPaper-elevation22 | elevation22 | Styles applied to the root element if elevation={22} . |
.MuiPaper-elevation23 | elevation23 | Styles applied to the root element if elevation={23} . |
.MuiPaper-elevation24 | elevation24 | Styles applied to the root element if elevation={24} . |
.MuiPaper-elevation3 | elevation3 | Styles applied to the root element if elevation={3} . |
.MuiPaper-elevation4 | elevation4 | Styles applied to the root element if elevation={4} . |
.MuiPaper-elevation5 | elevation5 | Styles applied to the root element if elevation={5} . |
.MuiPaper-elevation6 | elevation6 | Styles applied to the root element if elevation={6} . |
.MuiPaper-elevation7 | elevation7 | Styles applied to the root element if elevation={7} . |
.MuiPaper-elevation8 | elevation8 | Styles applied to the root element if elevation={8} . |
.MuiPaper-elevation9 | elevation9 | Styles applied to the root element if elevation={9} . |
.MuiPaper-outlined | outlined | Styles applied to the root element if variant="outlined" . |
.MuiPaper-root | root | Styles applied to the root element. |
.MuiPaper-rounded | rounded | Styles applied to the root element unless square={true} . |
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.