0.77.1-alpha.2 • Published 5 years ago

@ivanvanderbyl/ember-material-components-elevation v0.77.1-alpha.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

@ivanvanderbyl/ember-material-components-elevation

ember-cli addon for @material/elevation.

Installation

ember install @ivanvanderbyl/ember-material-components-elevation

Components and Mixins

Components

none

Mixins

Elevation

Description

The elevation mixin allows you to programmatically change the elevation of a component by adding the elevation class to the HTML element.

Usage

import Component from '@ember/component';
import Elevation from '@ivanvanderbyl/ember-material-components-elevation/mixins/elevation';

export default Component.extend (Elevation, {
  elevation: 4              // add mdc-elevation--z4 class to element
});

Attributes

  • elevation - Sets the elevation for the component. Acceptable values are 1 - 12.