liveBook · Manning

Web Components

Web Components are browser standards and APIs, including custom elements and shadow DOM, for creating reusable web interface elements with encapsulated structure, presentation, and behavior.

How 3 Manning books explain it

Web Components in Action

A web component is a reusable web platform component with encapsulated structure, styling, behavior, and APIs.

How it is used
Uses custom HTML elements to package reusable interface behavior, from individual controls to applications composed of components.
How deep it goes
Builds components step by step, then examines configurable APIs, lifecycle methods, encapsulation, modules, and composition.
Examples
Develops a slider and photo carousel, then uses composed components for a musical instrument and a hand-tracking interface.
What you can do after
Build it from scratch using HTMLElement and customElements.define, then configure it with attributes and connect it through events.

Read how Web Components in Action explains Web Components →

Vanilla Web

A reusable custom HTML element built using browser standards such as custom elements, shadow DOM, and HTML templates.

How it is used
Packages reusable UI behavior, markup, and styling as custom HTML elements.
How deep it goes
Builds from registration through lifecycle, interfaces, shadow DOM, and styling; defers detailed template and Element Internals treatment.
Examples
Uses independent counter buttons and routed page elements to demonstrate reusable instances and screen-level components.
What you can do after
Build it from scratch using customElements.define(), lifecycle callbacks, and an explicit attributes–properties–events contract.

Read how Vanilla Web explains Web Components →

Web Component Development with Modern Libraries and Tooling

A reusable web interface element implemented with encapsulated HTML, CSS, and JavaScript and exposed through the browser platform.

How it is used
Uses reusable custom elements to reduce repeated UI markup and share components across applications and frameworks.
How deep it goes
Works from element markup through vanilla class registration and browser upgrade, then compares libraries and framework integration.
Examples
Shows a radio-group replacing repeated inputs and labels, plus a greeting button implemented with a JavaScript class.
What you can do after
Build it from scratch with browser APIs, or evaluate libraries and integrate existing components into framework applications.

Read how Web Component Development with Modern Libraries and Tooling explains Web Components →

Also covered in

What to know first

Related concepts

Questions about Web Components

What is Web Components?

Web Components are browser standards and APIs, including custom elements and shadow DOM, for creating reusable web interface elements with encapsulated structure, presentation, and behavior.

Which Manning books explain Web Components?

Web Components in Action, Vanilla Web and Web Component Development with Modern Libraries and Tooling.

What should I know before learning Web Components?

Manning books that teach Web Components usually introduce JavaScript, CSS, HTML and attribute first.

What is Web Components a kind of?

Web Components is a kind of Custom Elements. A custom element is an author-defined HTML element that represents application-specific content or behavior beyond that of built-in HTML elements.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.