Giter Site home page Giter Site logo

Comments (7)

WebMamba avatar WebMamba commented on August 20, 2024 1

There is a note in the doc: https://symfony.com/bundles/ux-icons/current/index.html#html-syntax-1. We agree to say that the HTML syntax is not working for you, but if you use the twig function, does it work?

from ux.

Erwanou77 avatar Erwanou77 commented on August 20, 2024

I did it with the html syntax and it didn't work. But I haven't tried the twig function

from ux.

smnandre avatar smnandre commented on August 20, 2024

The component does not require TwigComponent, as it works with the Twig function {{ ux_icon(...) }}

The two times we show HTML syntax, there is a note explaining symfony/ux-twig-component must be installed.

Capture d’écran 2024-07-17 à 21 17 54 - Grande
https://symfony.com/bundles/ux-icons/current/index.html#html-syntax

Capture d’écran 2024-07-17 à 21 18 14 - Grande
https://symfony.com/bundles/ux-icons/current/index.html#html-syntax-1

And we don't want to force / push anyone to install Twig component if they don't need it.

So i'm not sure how we could do it better there: do you maybe have a suggestion @Erwanou77 ?

from ux.

Erwanou77 avatar Erwanou77 commented on August 20, 2024

Ah yes indeed, I had not seen the ux twig component.
My bad, I will close this issue

from ux.

Erwanou77 avatar Erwanou77 commented on August 20, 2024

Maybe putting it in red could be a good idea, because in fact I haven't seen this note

from ux.

smnandre avatar smnandre commented on August 20, 2024

Red is reserved to "danger" / "caution", but a "tip" could render like this:

Capture d’écran 2024-07-17 à 21 29 14

from ux.

Erwanou77 avatar Erwanou77 commented on August 20, 2024

Yes it's already a little better, but maybe put it at the beginning of the documentation.
After that it's maybe because I'm used to using the html syntax that's why ux twig component.

from ux.

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.