Giter Site home page Giter Site logo

ember-material's Introduction

ember-material

Wrapper components for google's web starter kit material design elements.

Note: expect periodic breaking changes since we're following the development of the material-sprint branch of wsk.


This is an ember-cli addon containing a collection of ember js components wrapping/adapting the vanilla javascript that powers the material design elements included in the future release of Google's Web Starter Kit.

The aim if this project is to keep compatibility with the default WSK, if you need something more emberish have a look at ember-paper.

Current version

v0.1.0 - Initial version

  • button, card, column-layout, item, shadow elements
  • ripple and shadow mixins
  • extra: animated hamburger icon.

Installation

From the root fo your ember-cli project do:

npm install ember-material --save-dev

Usage

wsk-button

  • Properties (can be mixed)
    • action (default: null) : Default to trigger on button press
    • raised (default: false) : raised button, false creates a flat button
    • colored (default: false) : apply default color styles
    • ripple (default: false) : enable ripple effect
    • fav (default: false) : create a FAV button (do not mix with icon)
    • icon (default: false) : create icon button (do not mix with fav)

Example:

{{#wsk-button action="someAction"

  ripple=true
  colored=true
  raised=true

}} Button text {{/wsk-button}}

wsk-column-layout

Example:

{{#wsk-column-layout}}
  <div class="some-class">
    ...
  </div>
  <div class="other-class">
    ...
  </div>
  <div class="another-class">
    ...
  </div>
{{/wsk-column-layout}}

wsk-card

Example:

{{#material-card}}

  {{#material-card-image}}
    <img src="some_image.png" alt="">
  {{/material-card-image}}

  {{#material-card-heading}}
    stuff
  {{/material-card-heading}}

  {{#material-card-caption}}
    more stuff
  {{/material-card-caption}}

  {{#material-card-lower}}
    lots of stuff
  {{/material-card-lower}}

  {{#material-card-bottom}}
    some action
  {{/material-card-bottom}}

{{/material-card}}

wsk-item

  • Properties
    • ripple (default: false) : enable ripple effect

Example: {{#wsk-item ripple=true}} item text {{/wsk-item}}

wsk-shadow

  • Properties
    • zPosition (default: 1) : element depth for shadowing

Example:

{{#wsk-shadow zPosition=2}}
  <div>Some stuff</div>
{{/wsk-shadow}}

####More to come soon ...


Contributing

If you want to contribute, well ... thank you!

Issues and PR's are welcome, the information below will be useful to you:

Development setup

Requirements

*Node js *Bower *node-sass-cli (globally for scripting)

*NOTE: for now, you need to install node-sass-cli for the wsk styles, I hope I find a better way to build these soon

  • git clone this repository
  • npm install
  • bower install

Refresh the stylesheets

./scripts/build-wsk-styles.sh

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

ember-material's People

Contributors

bbaaxx avatar ember-tomster avatar

Stargazers

Bill White avatar Tavi avatar Michael Swanson avatar Kieran Hall avatar John-Henry Liberty avatar

Watchers

James Cloos avatar  avatar

ember-material's Issues

ember-material npm

Hi @bbaaxx I'm working on an ember addon which provides a modifier to integrate ember and google @material/* components.

<button class="mdc-button" {{material 'button'}} />Some text</button>

The modifier is called material and I'd really like to release it on npmjs as ember-material. I see ember-material is deprecated on npmjs.org. If you no plans for it please could I release this addon as ember-material? I've not transferred ownership of a package before but I see instructions here, you'd add me as an owner to ember-material then I'd remove you as an owner.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.