@ivanvanderbyl/ember-material-components-elevation

0.77.1-alpha.2 • Public • Published

@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.

Package Sidebar

Install

npm i @ivanvanderbyl/ember-material-components-elevation

Weekly Downloads

0

Version

0.77.1-alpha.2

License

Apache-2.0

Unpacked Size

63 kB

Total Files

13

Last publish

Collaborators

  • ivanvanderbyl