Web Components

Design Systems & Engineering • UX & Product Architecture

Definition

Web Components are a suite of native browser W3C standards—comprising Custom Elements, Shadow DOM, and HTML Templates—that allow developers to create modular, framework-agnostic UI widgets.

Purpose

Enables the construction of enterprise design system libraries that function seamlessly across any JavaScript frontend framework (React, Vue, Angular, or vanilla JS) without vendor lock-in.

Key Concepts

Custom elementsShadow DOM encapsulationHTML templatesframework agnosticism.

How It Works

Developers define custom HTML tags via the customElements.define browser API, encapsulating internal CSS and DOM trees within an isolated Shadow Root.

Related Terms

Sources