Git Product home page Git Product logo

carbon-icons-lit's Introduction

carbon-icons-lit

@carbon/icons for lit

This package is automatically updated when @carbon/icons updates. The version on this package is kept in sync with @carbon/icons. It pulls in the icons and exports them as lit-html svg tags. It is therefore very efficient and only includes very little code:

$ tree node_modules/carbon-icons-lit/
│ ...
├── user/ 
│   ├── 16.d.ts
│   ├── 16.js
│   ├── 20.d.ts
│   ├── 20.js
│   ├── 24.d.ts
│   ├── 24.js
│   ├── 32.d.ts
│   └── 32.js
└── ...
$ bat node_modules/carbon-icons-lit/16.*
───────┬───────────────────────────────────────────────────────────────
       │ File: user/16.d.ts
───────┼───────────────────────────────────────────────────────────────
   1   │ declare const _default: import("lit-html").TemplateResult<2>;
   2   │ export default _default;
───────┴───────────────────────────────────────────────────────────────
───────┬───────────────────────────────────────────────────────────────
       │ File: user/16.js
───────┼───────────────────────────────────────────────────────────────
   1   │ import { svg } from "lit-html";
   2   │ export default svg`<svg ...><path d="M8 2c1.4 0 2.5...</svg>`;

see all files here on npm

Usage

npm i -D carbon-icons-lit
import UserIcon from 'carbon-icons-lit/user/32';

@customElement('my-element')
export class MyElement extends LitElement {
  render() {
    return html`
        <div>
            ${UserIcon}
        </div>
    `
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.