@authentic/mwc-chips
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

mwc-chips

A Material Components icon implementation using Web Components

Getting started

  • When you're ready to use mwc-chips in a project, install it via npm. To run the project in the browser, a module-compatible toolctain is required. We recommend installing the Polymer CLI and using its development server as follows.

    1. Ensure the webcomponents polyfills are included in your HTML page

      • Install webcomponents polyfills

        npm i @webcomponents/webcomponentsjs

      • Add webcomponents polyfills to your HTML page

        <script src="@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>

    2. Add mwc-chips to your project:

      npm i @authentic/mwc-chips

    3. Import the mwc-chips definition into your HTML page:

      <script type="module" src="@authentic/mwc-chips/mwc-chip.js"></script>

      Or into your module script:

      import { Chip } from "@authentic/mwc-chips/mwc-chip"

    4. Create an instance of mwc-chips in your HTML page, or via any framework that supports rendering Custom Elements:

      <mwc-chip></mwc-chip>

    5. Install the Polymer CLI:

      npm i -g polymer-cli

    6. Run the development server and open a browser pointing to its URL:

      polymer serve

    mwc-chips is published on npm using JavaScript Modules. This means it can take advantage of the standard native JavaScript module loader available in all current major browsers.

    However, since mwc-chips uses npm convention to reference dependencies by name, a light transform to rewrite specifiers to URLs is required to get it to run in the browser. The polymer-cli's development server polymer serve automatically handles this transform.

    Tools like WebPack and Rollup can also be used to serve and/or bundle mwc-chips.

Supported Browsers

The last 2 versions of all modern browsers are supported, including Chrome, Safari, Opera, Firefox, Edge. In addition, Internet Explorer 11 is also supported.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.9.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.9.00
0.8.180
0.8.170
0.8.160
0.8.150
0.8.140
0.8.130
0.8.120
0.8.110
0.8.100
0.8.90
0.8.80
0.8.70
0.8.60
0.8.50
0.8.40
0.8.30
0.8.20
0.8.10
0.8.00
0.7.20
0.7.10
0.7.00
0.6.130
0.6.120
0.6.110
0.6.100
0.6.90
0.6.80
0.6.70
0.6.60
0.6.50
0.6.40
0.6.30
0.6.20
0.6.10
0.6.00
0.5.230
0.5.220
0.5.200
0.5.190
0.5.180
0.5.170
0.5.160
0.5.150
0.5.140
0.5.130
0.5.120
0.5.110
0.5.100
0.5.91
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.00
0.5.0-rc.330
0.5.0-rc.321
0.5.0-rc.310
0.5.0-rc.300
0.5.0-rc.290
0.5.0-rc.280
0.5.0-rc.270
0.5.0-rc.260
0.5.0-rc.250
0.5.0-rc.240
0.5.0-rc.230
0.5.0-rc.220
0.5.0-rc.210
0.5.0-rc.200
0.5.0-rc.190
0.4.70
0.5.0-rc.180
0.5.0-rc.170
0.5.0-rc.160
0.5.0-rc.150
0.5.0-rc.140
0.5.0-rc.130
0.5.0-rc.70
0.5.0-rc.60
0.5.0-rc.50
0.4.50
0.4.40
0.4.30
0.4.20
0.4.10
0.4.00
0.3.340
0.3.330
0.3.320
0.3.310
0.3.300
0.3.290
0.3.280
0.3.270
0.3.260
0.3.250
0.3.240
0.3.230
0.3.210
0.3.190
0.3.180
0.3.170
0.3.160
0.3.150
0.3.140
0.3.130
0.3.120
0.3.110
0.3.100
0.3.90
0.3.80
0.3.70
0.3.60
0.3.50

Package Sidebar

Install

npm i @authentic/mwc-chips

Weekly Downloads

1

Version

0.9.0

License

Apache-2.0

Unpacked Size

176 kB

Total Files

24

Last publish

Collaborators

  • dashby
  • eporroa
  • luissardon
  • mmicheux
  • rodanato
  • timothyjoh
  • w.rojas