@ax-design/elevation
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

elevation

Web component that implements Elevation shadow effect of Axiom Design System.

npm version CI Status MIT Licence

Screenshot

Installation

// with npm
npm install @ax-design/elevation

// with yarn
yarn add @ax-design/elevation

and import it:

//CommonJS
require('@ax-design/elevation').register();

//ESModule
import { register } from '@ax-design/elevation';
register();

Usage

To add a reveal effect on your web application, you need to wrap a ax-elevation component with the component you want to add elevation depth. Here's an example:

<ax-elevation>
  elevation!
</ax-elevation>

Style Controlling

elevation component uses custom properties to manage the style of the elevation depth.

--elevation-depth

Type: <number>

Default: 0

Description: The depth of elevation shadow.

Readme

Keywords

none

Package Sidebar

Install

npm i @ax-design/elevation

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

1.01 MB

Total Files

39

Last publish

Collaborators

  • losses
  • jackworks
  • balthild