JSPM

@spectrum-web-components/icons

0.9.8-overlay.59+5ea964619
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3008
  • Score
    100M100P100Q124191F
  • License Apache-2.0

Package Exports

  • @spectrum-web-components/icons
  • @spectrum-web-components/icons/package.json
  • @spectrum-web-components/icons/sp-icons-large.js
  • @spectrum-web-components/icons/sp-icons-medium.js
  • @spectrum-web-components/icons/src/IconsLarge.js
  • @spectrum-web-components/icons/src/IconsMedium.js
  • @spectrum-web-components/icons/src/icons-large.svg.js
  • @spectrum-web-components/icons/src/icons-medium.svg.js
  • @spectrum-web-components/icons/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@spectrum-web-components/icons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Description

The <sp-icons-medium> and <sp-icons-large> elements that are included in this package supply your application with the Spectrum CSS Icons at both the medium and large sizes for use via the <sp-icon> element also provided by the Spectrum Web Components library. Include at least one of these elements in a project that makes use of icons in these sets, but feel free to include these sets in the scope of any element that leverages them as they will be deduplicated as appropriate to ensure all of your components are able to deliver the icons included therein.

Usage

See it on NPM! How big is this package in your project?

yarn add @spectrum-web-components/icons

Import the side effectful registration of <sp-icons-medium> or <sp-icons-large> via:

import '@spectrum-web-components/icons/sp-icons-medium.js';
import '@spectrum-web-components/icons/sp-icons-large.js';

When looking to leverage the IconsMedium or IconsLarge base classes as a type and/or for extension purposes, do so via:

import { IconsMedium, IconsLarge } from '@spectrum-web-components/icons';