Paper (code)
A Paper exists to group content and display it in a relative depth from where it resides on. It's an extension of Box.
Faster than my shadow
import { Paper } from '@mediahuis/chameleon-react'
Props
System Props
System Props
Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.
To read more about the system, click here to check out its dedicated page.
Elevation
To increase the paper's relative depth, you can alter the prop.
Elevation 1
Elevation 0
Elevation 1
Elevation 2
Elevation 2
Hoverable
To indicate to users that a paper has an action or a link bound to it, you can add a prop. This will increase the paper's depth when a user mouses over it.
This paper is not hoverable
This paper is hoverable
Related components
- Paper extends the Box component, this means every functionality available on Box is applicable on Paper as well.