Giter VIP home page Giter VIP logo

Comments (5)

rektdeckard avatar rektdeckard commented on April 20, 2024 1

This is an interesting idea, I haven't seen static component fields used for other metadata before... These tags are really more of an implementation detail of our website and plugin search, and are handwritten and not a true substitute for something like ElasticSearch or some other intelligent search mechanism, but the cost seems pretty low to add a few extra bytes to each component.

An alternative approach could be to publish a separate, framework-agnostic package with the tag and category data for every icon. This might be a bit more scalable. I'll look into it.

from react.

Simon-Renault avatar Simon-Renault commented on April 20, 2024 1

It would also be great to have those tags as a description for each icon in Figma, makes the search much better.

As right now to get the "fine" icon I often end up searching "document" ...

from react.

rektdeckard avatar rektdeckard commented on April 20, 2024 1

@Simon-Renault we have opted to expose a separate package, @phosphor-icons/core which will include both catalog data (tags, category, name, version released, etc.) and the raw SVG files, to be both framework/platform agnostic, and to keep bundle sizes down for the vast majority of users who do not need this. You can use it now via NPM, though it is lacking some documentation at the moment. The catalog is pegged to 1.4 release (current version).

As for adding tags to documentation description in Figma library, that's definitely something we can do!

from react.

Simon-Renault avatar Simon-Renault commented on April 20, 2024 1

@rektdeckard Amazing thank you so much for this! Can't wait for the Figma lib to use those as well :)

from react.

rektdeckard avatar rektdeckard commented on April 20, 2024 1

BTW, tags are now part of component descriptions in the Figma library.

from react.

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.