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.

Component demos

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 classes

These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.

.MuiPaper-elevation

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

Rule name:elevation


.MuiPaper-elevation0

Styles applied to the root element if elevation={0}.

Rule name:elevation0


.MuiPaper-elevation1

Styles applied to the root element if elevation={1}.

Rule name:elevation1


.MuiPaper-elevation10

Styles applied to the root element if elevation={10}.

Rule name:elevation10


.MuiPaper-elevation11

Styles applied to the root element if elevation={11}.

Rule name:elevation11


.MuiPaper-elevation12

Styles applied to the root element if elevation={12}.

Rule name:elevation12


.MuiPaper-elevation13

Styles applied to the root element if elevation={13}.

Rule name:elevation13


.MuiPaper-elevation14

Styles applied to the root element if elevation={14}.

Rule name:elevation14


.MuiPaper-elevation15

Styles applied to the root element if elevation={15}.

Rule name:elevation15


.MuiPaper-elevation16

Styles applied to the root element if elevation={16}.

Rule name:elevation16


.MuiPaper-elevation17

Styles applied to the root element if elevation={17}.

Rule name:elevation17


.MuiPaper-elevation18

Styles applied to the root element if elevation={18}.

Rule name:elevation18


.MuiPaper-elevation19

Styles applied to the root element if elevation={19}.

Rule name:elevation19


.MuiPaper-elevation2

Styles applied to the root element if elevation={2}.

Rule name:elevation2


.MuiPaper-elevation20

Styles applied to the root element if elevation={20}.

Rule name:elevation20


.MuiPaper-elevation21

Styles applied to the root element if elevation={21}.

Rule name:elevation21


.MuiPaper-elevation22

Styles applied to the root element if elevation={22}.

Rule name:elevation22


.MuiPaper-elevation23

Styles applied to the root element if elevation={23}.

Rule name:elevation23


.MuiPaper-elevation24

Styles applied to the root element if elevation={24}.

Rule name:elevation24


.MuiPaper-elevation3

Styles applied to the root element if elevation={3}.

Rule name:elevation3


.MuiPaper-elevation4

Styles applied to the root element if elevation={4}.

Rule name:elevation4


.MuiPaper-elevation5

Styles applied to the root element if elevation={5}.

Rule name:elevation5


.MuiPaper-elevation6

Styles applied to the root element if elevation={6}.

Rule name:elevation6


.MuiPaper-elevation7

Styles applied to the root element if elevation={7}.

Rule name:elevation7


.MuiPaper-elevation8

Styles applied to the root element if elevation={8}.

Rule name:elevation8


.MuiPaper-elevation9

Styles applied to the root element if elevation={9}.

Rule name:elevation9


.MuiPaper-outlined

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

Rule name:outlined


.MuiPaper-root

Styles applied to the root element.

Rule name:root


.MuiPaper-rounded

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

Rule name:rounded



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