Skip to main content

elevation

Tool to create depth on screen for users

Submit feedback
github
import { elevation } from '@uhg-abyss/mobile';

Properties

elevation(level: number)

Usage

The elevation function take in a single parameter that chooses the magnitude of the shadow effect applied to the surface of the component. The parameter accepts integers 0 - 4 inclusive.

The function will return an object that can be placed in a component's style prop, which will add the shadow effects directly to the component.

Table of Contents