Material Design Web Components
Go to file
2024-06-04 21:57:37 -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(button): add part attribute to button 2024-05-21 16:24:31 +02:00
catalog chore: remove todo from catalog code 2024-02-20 16:34:59 -08:00
checkbox fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08:00
chips fix(button,fab,chips,labs): text-transform inherits through shadow root 2024-03-05 13:24:40 -08:00
color chore: token code adjustments 2023-09-08 11:38:07 -07:00
dialog fix(dialog): focus is trapped for a11y, use no-focus-trap to disable 2024-04-19 10:25:52 -07:00
divider fix(typography): rename md-typescale.js to md-typescale-styles.js 2024-03-20 13:43:26 -07:00
docs docs: update analyzer and update docs 2024-06-04 21:57:37 -07:00
elevation fix(elevation): limit elevation transition to box-shadow and opacity 2024-03-06 16:56:21 -08:00
fab fix(button,fab,chips,labs): text-transform inherits through shadow root 2024-03-05 13:24:40 -08: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(typography): rename md-typescale.js to md-typescale-styles.js 2024-03-20 13:43:26 -07:00
internal chore: add role property to aria helpers 2024-05-11 17:35:13 -07:00
labs Merge pull request #5606 from Dakotys:main 2024-05-02 16:51:32 -07:00
list chore(list): add extra label for disabled non-interactive item 2024-04-24 06:11:18 -07:00
menu fix(menu): getBoundingClientRect() and getClientRects() not working 2024-05-16 19:12:29 -07:00
progress fix: rename internal <styles>.css.js to <styles>.css 2024-02-28 16:20:22 -08: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 typo in select.ts 2024-05-29 12:07:48 +02:00
slider Changed slider background-color to background in css 2024-03-09 10:00:46 +01:00
switch fix(switch): pressing enter toggles the switch 2024-05-29 21:04:36 -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 Merge pull request #5616 from npeters-dev:text-field-optional-asterisk 2024-05-23 10:02:19 -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.0 2024-05-23 17:03:00 +00:00
all.ts sort all.ts alphabetically 2023-10-25 09:06:26 +02:00
CHANGELOG.md chore: release 1.5.0 2024-05-23 17:03:00 +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 docs: update analyzer and update docs 2024-06-04 21:57:37 -07:00
package.json docs: update analyzer and update docs 2024-06-04 21:57:37 -07:00
README.md docs: update readme and quick start 2024-04-09 14:37:51 -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 docs: auto-generate API docs 2023-09-19 21:05:47 -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.

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>