Skip to content

Paper API

API reference docs for the React Paper component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Paper from '@mui/material/Paper';
// or
import { Paper } from '@mui/material';
Learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

NameTypeDefaultDescription
childrennode

The content of the component.

classesobject

Override or extend the styles applied to the component.

See CSS API below for more details.

componentelementType

The component used for the root node. Either a string to use a HTML element or a component.

elevationinteger1

Shadow depth, corresponds to dp in the spec. It accepts values between 0 and 24 inclusive.

squareboolfalse

If true, rounded corners are disabled.

sxArray<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.

The 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.


CSS

The following class names are useful for styling with CSS (the state classes are marked).
To learn more, visit the component customization page.

Global classRule nameDescription
.MuiPaper-rootrootStyles applied to the root element.
.MuiPaper-roundedroundedStyles applied to the root element unless square={true}.
.MuiPaper-outlinedoutlinedStyles applied to the root element if variant="outlined".
.MuiPaper-elevationelevationStyles applied to the root element if variant="elevation".
.MuiPaper-elevation0elevation0
.MuiPaper-elevation1elevation1
.MuiPaper-elevation2elevation2
.MuiPaper-elevation3elevation3
.MuiPaper-elevation4elevation4
.MuiPaper-elevation5elevation5
.MuiPaper-elevation6elevation6
.MuiPaper-elevation7elevation7
.MuiPaper-elevation8elevation8
.MuiPaper-elevation9elevation9
.MuiPaper-elevation10elevation10
.MuiPaper-elevation11elevation11
.MuiPaper-elevation12elevation12
.MuiPaper-elevation13elevation13
.MuiPaper-elevation14elevation14
.MuiPaper-elevation15elevation15
.MuiPaper-elevation16elevation16
.MuiPaper-elevation17elevation17
.MuiPaper-elevation18elevation18
.MuiPaper-elevation19elevation19
.MuiPaper-elevation20elevation20
.MuiPaper-elevation21elevation21
.MuiPaper-elevation22elevation22
.MuiPaper-elevation23elevation23
.MuiPaper-elevation24elevation24

You can override the style of the component using one of these customization options: