@spectrum-web-components/iconset
    TypeScript icon, indicating that this package has built-in type declarations

    0.6.0 • Public • Published

    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

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

    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;
        }
    }

    Install

    npm i @spectrum-web-components/iconset

    DownloadsWeekly Downloads

    1,620

    Version

    0.6.0

    License

    Apache-2.0

    Unpacked Size

    79.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • hunterloftis
    • westbrook
    • benjamind
    • adixon
    • cuberoot
    • msdewey
    • najikahalsema