Skip to content

Fork this repo if you want to start your own Web Component using Polymer

License

Notifications You must be signed in to change notification settings

Juicy/juicy-polymer-boilerplate

 
 

Repository files navigation

<juicy-element> Build Status

A bare minimum custom element starter-kit using Polymer.

Like Yeoman? Use the generator-element instead.

Looking for a working example? Check hello-world-polymer.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install juicy-element --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill, if needed:

    <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/juicy-element/juicy-element.html">
  3. Start using it!

    <juicy-element></juicy-element>

Options

Attribute Options Default Description
foo string bar Lorem ipsum dolor.

Methods

Method Parameters Returns Description
unicorn() None. Nothing. Magic stuff appears.

Events

Event Description
onsomething Triggers when something happens.

CSS Custom Properties

Name Description
--juicy-element-laser-color Color of the shooted lasers.

History

For detailed changelog, check Releases.

License

MIT

About

Fork this repo if you want to start your own Web Component using Polymer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 69.1%
  • JavaScript 30.9%