🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

material-custom-elements

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

material-custom-elements

Material web components bundled for the web.

unpublished
latest
Source
npmnpm
Version
0.25.7
Version published
Maintainers
1
Created
Source

Material Web Components

This is a package that bundles all of the web components from the Material Web repo so that you don't need a module bundler to use them.

Components:

  • button,
  • checkbox,
  • circular-progress,
  • circular-progress-four-colors,
  • dialog,
  • drawer,
  • fab,
  • formfield,
  • icon-button-toggle,
  • icon-button,
  • icon,
  • linear-progress,
  • list,
  • menu,
  • radio,
  • select,
  • slider,
  • snackbar,
  • switch,
  • tab-bar,
  • tab,
  • textarea,
  • textfield,
  • top-app-bar-fixed,
  • top-app-bar,

Variants:

  • component.js The unminified, bundled component in an IIFE format.
  • component.min.js RECOMMENDED The minified, bundled component in an IIFE format.
  • component.esm.js The unminified component as an ESM module. All imports are reexported.
  • component.esm.min.js The minified component as an ESM module. All imports are reexported.

All components have .map files.

There is also a file that includes all components. This is preferred over manually importing every component since helper libraries (like lit) aren't imported multiple times.

To use:

(index.html)
<html>
  <head></head>
  <body>
    <script
      async
      src="https://unpkg.com/material-custom-elements/(component).min.js"
    ></script>
  </body>
</html>

As a module:

(index.html)
<html>
  <head></head>
  <body>
    <script
      type="module"
      src="https://unpkg.com/material-custom-elements/(component).esm.min.js"
    ></script>
  </body>
</html>

Importing all components:

(index.html)
<html>
  <head></head>
  <body>
    <script
      async
      src="https://unpkg.com/material-custom-elements/all.min.js"
    ></script>
  </body>
</html>

As a module:

(index.html)
<html>
  <head></head>
  <body>
    <script
      type="module"
      src="https://unpkg.com/material-custom-elements/all.esm.min.js"
    ></script>
  </body>
</html>

Keywords

material

FAQs

Package last updated on 18 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts