Skip to main content

Paper: React

Paper exists to group content and present it on a relative depth from where it resides on.

Installation

Before you can start using the @mediahuis/chameleon-react component, you’ll need to install it, for more information check: Getting started for developers.

With that done, you’re now ready to implement the component in your application.

import { Paper } from '@mediahuis/chameleon-react';

export default function Example() {
return <Paper>Example</Paper>;
}

Properties

PropertyTypeDefaultRequiredDescription
asElementType'div'NoProps for the Paper component.
elevationUnknown | 0 | 1 | 2 | 31NoThe elevation value of the Paper, ranging from -1 to 3. Higher values create a more prominent effect.
hoverableBooleanfalseNoDetermines whether the visual effects on the Paper will interact on hover.