Skip to main content brightness_auto motion_photos_off palette download more_vert
toc

Introduction

Material web, also known as Material Web Components or MWC, is a library of web components that follows Google's Material Design guidelines.

Material Design is a design system built and supported by Google designers and developers. Guidelines for building Material apps and components are published on material.io.

Version 3.0 implements Material 3 Expressive, the latest evolution of Material 3: a larger shape scale with shape morphing, spring-based motion, an emphasized type scale, and an updated dynamic color system. The elements are named md-gb-*, follow the WAI-ARIA patterns for their roles, and only rely on web platform features that are Baseline widely available (newer features are guarded and degrade gracefully).

An example of a Material Design application.

Web components are custom HTML elements with encapsulated styles and behavior. They work across many different frameworks (such as Lit, React, Vue, and Svelte) as well as web environments (such as Eleventy, Wordpress, and Ruby on Rails).

Many components in this library are drop-in replacements for browser elements like <button> and <input>. Every element is prefixed with md-gb-.

Subscribe
<form>
  <md-gb-text-field label="Email" type="email" name="email" required></md-gb-text-field>
  <md-gb-button color="filled">Subscribe</md-gb-button>
</form>

Design tokens are the building blocks of all UI elements. Here they are CSS custom properties that you can override to style components. Version 3.0 provides the system tokens for color, typography, shape, elevation, space, and motion.

Subscribe
HTMLCSS
<md-gb-button color="filled">Subscribe</md-gb-button>
Install Material Web 3.0

Your browser did not offer to install the docs as an app. Install them from the browser instead:

Close
Send feedback
Bug Documentation Idea

Opens a new GitHub issue for material-components/material-web in a new tab, with this filled in.

Cancel Open issue