Napoleonic Political Magnificence

    clay-icon

    2.23.4 • Public • Published

    clay-icon

    A Metal Clay component for rendering SVG icons and third-party icon fonts. For third-party fonts, make sure the font file and css are included on the page.

    Rendering Clay SVG Icons:

    new metal.ClayIcon({
    	spritemap: '/path/to/the/spritemap.svg',
    	symbol: 'plus'
    });

    Rendering Clay Font Awesome Icons

    new metal.ClayIcon({
    	elementClasses: 'clay-fa icon-plus'
    });

    Rendering Glyphicons:

    new metal.ClayIcon({
    	elementClasses: 'glyphicon glyphicon-plus'
    });

    Rendering Font Awesome 4 Icons:

    new metal.ClayIcon({
    	elementClasses: 'fa fa-plus'
    });

    Setup

    1. See metal-clay-components/README.md

    2. Build the code:

    npm run build
    
    1. Watch task:
    npm run watch
    

    Contribute

    We'd love to get contributions from you! Please, check our Contributing Guidelines to see how you can help us improve.

    Keywords

    Install

    npm i clay-icon

    DownloadsWeekly Downloads

    1,554

    Version

    2.23.4

    License

    BSD-3-Clause

    Unpacked Size

    35.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • tinycarol
    • edalgrin
    • pat270
    • liferay
    • bryceosterhaus
    • carloslancha
    • diegonvs
    • matuzalemteles
    • izaera
    • gagranta
    • p2kmgcl
    • marko.cikos
    • kresimircoko
    • jbalsas