Package Exports
- @spectrum-web-components/iconset
- @spectrum-web-components/iconset/package.json
- @spectrum-web-components/iconset/src/iconset-registry.d.ts
- @spectrum-web-components/iconset/src/iconset-registry.js
- @spectrum-web-components/iconset/src/iconset-registry.js.map
- @spectrum-web-components/iconset/src/iconset-svg.d.ts
- @spectrum-web-components/iconset/src/iconset-svg.js
- @spectrum-web-components/iconset/src/iconset-svg.js.map
- @spectrum-web-components/iconset/src/iconset.d.ts
- @spectrum-web-components/iconset/src/iconset.js
- @spectrum-web-components/iconset/src/iconset.js.map
- @spectrum-web-components/iconset/src/index.d.ts
- @spectrum-web-components/iconset/src/index.js
- @spectrum-web-components/iconset/src/index.js.map
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/iconset) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Description
Extend either the Iconset
or IconsetSVG
exports of this package to supply your application with a custom icon set to power the use of <sp-icon>
elements throughout. Give your new icon set a custom name, and you'll be ready to supply them as <sp-icon name="custom-icons:icon">
across your application.
Usage
yarn add @spectrum-web-components/iconset
import { TemplateResult } from 'lit-element';
import { IconsetSVG } from '@spectrum-web-components/iconset/src/iconset-svg.js';
import { CustomIconSet } from 'your-icon-set.js';
export class IconsLarge extends IconsetSVG {
public constructor() {
super();
this.name = 'custom-icons'; // default iconset name for these icons
}
protected renderDefaultContent(): TemplateResult {
return CustomIconSet;
}
}