GithubHelp home page GithubHelp logo

web-component implementation about iconify HOT 2 CLOSED

iconify avatar iconify commented on June 18, 2024 2
web-component implementation

from iconify.

Comments (2)

cyberalien avatar cyberalien commented on June 18, 2024

I think it would be good idea to implement it, but it will take some time because it is not a priority right now.

Implementing basic component similar to @iconify/react as web component is rather pointless - better to just use SVGs.

Implementing component with API support that takes icon name as attribute and loads data from API (similar to SVG framework and @iconify/react-with-api) is something I do want to do, but due to time limitations is not an option right now. First I need to finish new website and publish all new components and SVG framework that are currently marked as release candidates waiting for website to be complete.

from iconify.

cyberalien avatar cyberalien commented on June 18, 2024

This took a while...

Icon web component is finally available: https://www.npmjs.com/package/iconify-icon

It is still in development, so version number starts with 0, but can probably be used in production because all code it uses is shared with stable SVG framework and components for frameworks like React.

It is massive improvement over old framework specific components. Performance of icons in shadow DOM is much better, especially complex icons that use animations.

Documentation is missing, but it is basically the same as other components. You can pass icon as icon attribute or property. To pass an object with icon data instead of icon name, you can either JSON.stringify() it or use property instead of attribute (technically same thing: property is just a setter that stringifies object).

from iconify.

Related Issues (20)

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.