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.

children

The content of the component.

Type:

node

classes

Override or extend the styles applied to the component.

See CSS API below for more details.

Type:

object

component

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

Type:

elementType

elevation

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

Type:

integer

Default:

1

square

If true, rounded corners are disabled.

Type:

bool

Default:

false

sx

The system prop that allows defining system overrides as well as additional CSS styles.

See the `sx` page for more details.

Type:

Array<func | object | bool> | func | object

variant

The variant to use.

Type:

'elevation' | 'outlined' | string

Default:

'elevation'

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.


.MuiPaper-rootroot

Styles applied to the root element.


.MuiPaper-roundedrounded

Styles applied to the root element unless square={true}.


.MuiPaper-outlinedoutlined

Styles applied to the root element if variant="outlined".


.MuiPaper-elevationelevation

Styles 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: