Material Design Web Components
Go to file
Material Web Team 93b0f17a87 feat(chips): add label slot
PiperOrigin-RevId: 648883417
2024-07-03 17:18:55 -07:00
.github chore: don't add reviewers to size update PR and try new branch 2023-12-20 14:18:29 -08:00
button fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
catalog chore(catalog): fix @material/web dependency restriction for 2.0 2024-07-02 15:38:09 -07:00
checkbox fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
chips feat(chips): add label slot 2024-07-03 17:18:55 -07:00
color chore: token code adjustments 2023-09-08 11:38:07 -07:00
dialog fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
divider fix(typography): rename md-typescale.js to md-typescale-styles.js 2024-03-20 13:43:26 -07:00
docs chore: update sizes 2024-06-20 20:44:56 +00:00
elevation fix(elevation): limit elevation transition to box-shadow and opacity 2024-03-06 16:56:21 -08:00
fab fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
field Merge pull request #5616 from npeters-dev:text-field-optional-asterisk 2024-05-23 10:02:19 -07:00
focus fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08:00
icon fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08:00
iconbutton fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
internal fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
labs fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
list fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
menu fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
migrations/v2 fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
progress fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
radio fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08:00
ripple fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08:00
scripts chore: update css-to-ts script 2024-03-05 11:52:39 -08:00
select fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
slider fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
switch fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
tabs docs: fix tab's change event description for active tab properties 2024-05-23 21:01:38 -07:00
testing fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08:00
textfield fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
tokens chore(tokens): remove closed todo bug 2024-02-29 13:33:41 -08:00
typography fix(typography): rename md-typescale.js to md-typescale-styles.js 2024-03-20 13:43:26 -07:00
.gitignore chore: update css-to-ts script 2024-03-05 11:52:39 -08:00
.release-please-manifest.json chore: release 1.5.1 2024-06-25 00:49:27 +00:00
all.ts sort all.ts alphabetically 2023-10-25 09:06:26 +02:00
CHANGELOG.md chore: release 1.5.1 2024-06-25 00:49:27 +00:00
CODE_OF_CONDUCT.md chore: add code of conduct 2023-12-07 16:09:33 -08:00
commitlint.config.js chore: add "testing" to commitlint types 2024-01-22 12:09:08 -08:00
common.ts sort common.ts alphabetically 2023-10-25 09:07:01 +02:00
CONTRIBUTING.md docs: add contributing guide 2023-12-18 11:52:14 -08:00
LICENSE fix: update license year and holder 2023-02-22 15:42:31 -08:00
package-lock.json chore(catalog): fix @material/web dependency restriction for 2.0 2024-07-02 15:38:09 -07:00
package.json chore: release 1.5.1 2024-06-25 00:49:27 +00:00
README.md docs: update project status 2024-06-10 14:04:41 -07:00
release-please-config.json chore: update release-please 2023-01-09 10:04:00 -08:00
SECURITY.md chore: set up security policy 2023-12-07 16:08:14 -08:00
tsconfig.json fix!: aria-labels announcing twice with "group" on components 2024-07-02 15:22:12 -07:00
web-test-runner.config.js chore: remove todos from web-test-running.config.js 2024-02-20 15:32:23 -08:00

Material Web

A collection of Material web components

Published on npm Join our Discord Test status npm Downloads jsDelivr hits (npm)

@material/web is a library of web components that helps build beautiful and accessible web applications. It uses Material 3, the latest version of Google's open-source design system.

Note: MWC is in maintenance mode pending new maintainers.

Resources

Quick start

Tip: Using Angular? We recommend using Angular Material components instead.

This code snippet is a buildless example that loads @material/web from a CDN. Check out the quick start guide to install and build for production.

<head>
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
  <script type="importmap">
    {
      "imports": {
        "@material/web/": "https://esm.run/@material/web/"
      }
    }
  </script>
  <script type="module">
    import '@material/web/all.js';
    import {styles as typescaleStyles} from '@material/web/typography/md-typescale-styles.js';

    document.adoptedStyleSheets.push(typescaleStyles.styleSheet);
  </script>
</head>
<body>
  <h1 class="md-typescale-display-medium">Hello Material!</h1>
  <form>
    <p class="md-typescale-body-medium">Check out these controls in a form!</p>
    <md-checkbox></md-checkbox>
    <div>
      <md-radio name="group"></md-radio>
      <md-radio name="group"></md-radio>
      <md-radio name="group"></md-radio>
    </div>

    <md-outlined-text-field label="Favorite color" value="Purple"></md-outlined-text-field>

    <md-outlined-button type="reset">Reset</md-outlined-button>
  </form>
  <style>
    form {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  </style>
</body>