search
Get Started
search
Polymer - Framework
zoom_in Click to enlarge

Polymer

language

description Polymer Overview

Polymer is an open-source JavaScript library and set of tools associated with Google for building web components. It encouraged developers to create reusable custom HTML elements using browser standards such as Custom Elements, Shadow DOM, and HTML templates. Polymer components can encapsulate markup, styles, and behavior, making them suitable for teams that want modular interfaces and interoperable elements rather than framework-specific widgets.

help Polymer FAQ

What did Polymer add to web component development?

Polymer helped developers define Custom Elements with Shadow DOM, HTML templates, properties and data binding. Its PolymerElement base class made reusable browser-native elements easier to create with JavaScript and declarative templates. [Polymer documentation](https://polymer-library.polymer-project.org/3.0/docs/devguide/feature-overview)

Is Polymer still recommended for new projects?

The Polymer Project documentation says the Polymer library is in maintenance mode and recommends Lit for new development. Lit is described by the same project as Polymer's successor. [Polymer documentation](https://polymer-library.polymer-project.org/3.0/docs/devguide/feature-overview)

How are Polymer elements registered in the browser?

A Polymer element normally extends PolymerElement, defines a template and properties, and is registered with the browser's Custom Elements registry using a name such as x-custom. The result can be created with document.createElement like another HTML element. [Polymer documentation](https://polymer-library.polymer-project.org/3.0/docs/devguide/feature-overview)

Can Polymer support browsers without native Shadow DOM?

Yes, Polymer can use the webcomponents-lite bundle and Shady DOM or Shady CSS polyfills when native Shadow DOM is unavailable. The documentation also notes that polyfills cannot reproduce every native Shadow DOM feature perfectly. [Polymer documentation](https://polymer-library.polymer-project.org/3.0/docs/devguide/shadow-dom)

Reviews & Comments

Write a Review

rate_review

Be the first to review

Share your thoughts with the community and help others make better decisions.

Save to your list

Save your favorites and follow how their scores change over time.

Save favorites
Track changes
Compare scores

Already have an account? Sign in

Compare Items

See how they stack up against each other

Comparing
VS
Select 1 more item to compare