Materialish

Elevation

Elevations create a sense of depth by applying a drop shadow to an element.

🙌 Heads up! This code is editable. The preview above will update to reflect your changes.

Usage

import { Elevation } from 'materialish';
import 'materialish/materialish.css';

Props

Prop NameDefault ValueDescription
classNameAdditional class name(s) to add to the elevation
depth1A value between 0 and 5 that represents how far from the page the element should appear
nodeRefPass a ref to get access to the root node
...restOther props are placed on the root element of the elevation

CSS Variables

VariableDefault ValueDescription
--mt-baseFontSize1remThe size of text within the elevation
--mt-fontFamily'Roboto'The font family to use for text

Useful Links