--- url: "https://web.dev/articles/webcomponents-org" titulek: "Web Components v1 - the next generation | Articles | web.dev" h1: "Web Components v1 - the next generation Stay organized with collections Save and categorize content based on your preferences." popis: "Web Components are gaining cross-browser support, the community is growing in leaps and bounds, and there’s a brand-new Web Component catalog to find exactly the component you need." jazyk: "en" kanonicka: "https://web.dev/articles/webcomponents-org" drobecky: ["Articles", "Web Components v1 - the next generation"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:55:49" znaku: 4655 slov: 572 kodovani: "iso-8859-2" sha256: "98087fcb5de566aaff906c04bb253a4a682112627683e2124aef792d7d988a48" --- Web Components v1 - the next generation Stay organized with collections Save and categorize content based on your preferences. Web Components are gaining cross-browser support, the community is growing in leaps and bounds, and there’s a brand-new Web Component catalog to find exactly the component you need. Taylor Savage Ever wanted to build your own self-contained JavaScript component, that you can easily use across multiple projects or share with other developers regardless of what JavaScript framework they use? Web Components may be for you. Web Components are a set of new web platform features that let you create your own HTML elements. Each new custom element can have a custom tag like ``, and have all the goodness of built-in elements - custom elements can have properties and methods, fire and respond to events, and even have an encapsulated style and DOM trees to bring along their own look and feel. By providing a platform-based, low-level component model, Web Components let you build and share re-usable elements for everything from specialized buttons to complex views like datepickers. Because Web Components are built with platform API’s which include powerful encapsulation primitives, you can even use these components within other JavaScript libraries or frameworks as if they were standard DOM elements. You may have heard of Web Components before - an early version of the Web Components spec - v0 - was [shipped in Chrome 33](https://www.chromestatus.com/feature/4642138092470272). Today, thanks to broad collaboration between browser vendors, the next-generation of the Web Components spec - v1 - is gaining wide support. Chrome supports the two major specs that make up Web Components - [Shadow DOM](/articles/shadowdom-v1) and [Custom Elements](/articles/custom-elements-v1) - as of [Chrome 53](https://www.chromestatus.com/feature/4667415417847808) and [Chrome 54](https://www.chromestatus.com/feature/4696261944934400) respectively. Safari shipped support for [Shadow DOM v1 in Safari 10](https://webkit.org/status/#feature-shadow-dom), and has completed implementation of [Custom Elements v1 in WebKit](https://webkit.org/blog/7027/introducing-custom-elements/). Firefox is currently developing [Shadow DOM](https://mozilla.github.io/standards-positions/#declarative-shadow-dom) and [Custom Elements](https://mozilla.github.io/standards-positions/#custom-elements) v1, and both [Shadow DOM](https://developer.microsoft.com/en-us/microsoft-edge/platform/status/shadowdom/) and [Custom Elements](https://developer.microsoft.com/en-us/microsoft-edge/platform/status/customelements/) are on the roadmap for Edge. To define a new custom element using the v1 implementation, you simply create a new class that extends `HTMLElement` using ES6 syntax and register it with the browser: `class MyElement extends HTMLElement {...} window.customElements.define('my-element', MyElement);` The new v1 specs are extremely powerful - we’ve put together tutorials on using [Custom Elements v1](/articles/custom-elements-v1) and [Shadow DOM v1](/articles/shadowdom-v1) to help you get started. webcomponents.org The Web Component community is also growing in leaps and bounds. We’re excited to see the launch of an updated [webcomponents.org](https://www.webcomponents.org/) site - the focal point of the web components community - including an integrated catalog for developers to share their elements. The webcomponents.org site contains information about the Web Components [specs](https://www.webcomponents.org/specs), updates and content from the [web components community](https://www.webcomponents.org/community), and displays documentation for [open-source elements](https://www.webcomponents.org/element/PolymerElements/paper-button) and [collections of elements](https://www.webcomponents.org/collection/PolymerElements/paper-elements) built by other developers. You can get started building your first element using a library like Google’s [Polymer](https://www.polymer-project.org/), or just use the low-level Web Component API’s directly. Then [publish your element](https://www.webcomponents.org/publish) on webcomponents.org. Happy componentizing! Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2017-01-10 UTC.