Pupix 6df7161d69 Allow users to disable surface flipping in md-menu
Sometimes the desired effect is to have the menu extend to the available height and then start overflowing instead of flipping to the opposite corner. Cases like search bar, autocomplete or any kind of input with suggestions below the textfield content.
2024-08-02 22:57:44 +02:00
2024-07-15 16:52:06 -07:00
2023-09-08 11:38:07 -07:00
2024-03-05 11:52:39 -08:00
2024-07-15 16:52:06 -07:00
2024-03-05 11:52:39 -08:00
2023-10-25 09:06:26 +02:00
2024-07-23 18:00:12 +00:00
2023-12-07 16:09:33 -08:00
2023-10-25 09:07:01 +02:00
2023-12-18 11:52:14 -08:00
2024-07-23 18:00:12 +00:00
2024-07-23 18:00:12 +00:00
2024-06-10 14:04:41 -07:00
2023-12-07 16:08:14 -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>
Languages
SCSS 60.8%
TypeScript 37.5%
JavaScript 0.9%
CSS 0.5%
HTML 0.3%