Skip to content

rvijayarajan/WebComponents

Repository files navigation

spectraa-cons

Build status ![Size][size-badge] Version [![Published][webcomponents-badge]][webcomponents-url]

Spectraa is a construction firm

Installation & usage

Install spectraa-cons with Bower

$ bower i https://github.com/rvijayarajan/spectraa-cons --save

Import it into the <head> of your page

<link rel="import" href="/bower_components/spectraa-cons/spectraa-cons.html">

Then use spectraa-cons in your project

<spectraa-cons></spectraa-cons>

Polyfills for cross-browser support

spectraa-cons relies on emerging standards, for full cross-browser support include the WebComponentsJS polyfill on your page.

<script src="https://unpkg.com/@webcomponents/webcomponentsjs@^1.0.0/webcomponents-loader.js"></script>

Transpiling for IE11 support

Web Components like spectraa-cons are distributed as ES6 classes, which are supported in all evergreen browsers. To support Internet Explorer 11 you should transpile spectraa-cons to ES5 and use the webcomponentsjs custom-elements-es5-adapter.js shim.

The easiest way to do this is by including [polymer-build][polymer-build] in your buildstep of choice. Then just include the ES5 adapter on your page

<script src="https://unpkg.com/@webcomponents/webcomponentsjs@^1.0.0/custom-elements-es5-adapter.js"></script>

MIT © Vijay

[size-badge]: http://img.badgesize.io/https://github.com/rvijayarajan/spectraa-cons/master/props.name .html?compression=gzip&label=size%20%28unminified%29 [webcomponents-badge]: https://img.shields.io/badge/webcomponents.org-published-blue.svg [webcomponents-url]: https://www.webcomponents.org/element/https://github.com/rvijayarajan/spectraa-cons [polymer-build]: https://github.com/Polymer/polymer-build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published