diff --git a/src/Icons/README.md b/src/Icons/README.md index 782691308d9..77f0ba69291 100644 --- a/src/Icons/README.md +++ b/src/Icons/README.md @@ -7,7 +7,7 @@ Renders local and remote [SVG icons](https://ux.symfony.com/icons) in your Twig {{ ux_icon('mdi:check', {class: 'w-4 h-4'}) }} {# .. or Twig Component #} - + {# Render the "check" icon from "mdi" pack with class #} diff --git a/src/Icons/doc/index.rst b/src/Icons/doc/index.rst index d61a0146def..b9940d547d5 100644 --- a/src/Icons/doc/index.rst +++ b/src/Icons/doc/index.rst @@ -155,20 +155,20 @@ HTML Syntax ~~~~~~~~~~~ In addition to the ``ux_icon()`` function explained in the previous sections, -this package also supports an alternative HTML syntax based on the ```` +this package also supports an alternative HTML syntax based on the ```` tag: .. code-block:: html - + - + - + - + .. note:: @@ -288,16 +288,16 @@ HTML Syntax .. code-block:: html+twig - + {# Renders "user-profile.svg" #} - + {# Renders "sub-dir/user-profile.svg" (sub-directory) #} - + {# Renders "flowbite:user-solid" from ux.symfony.com #} - + .. note:: @@ -376,7 +376,7 @@ of the following attributes: ``aria-label``, ``aria-labelledby`` or ``title``. .. code-block:: twig+html - + Performance @@ -408,7 +408,7 @@ In production, you can pre-warm the cache by running the following command: $ php bin/console ux:icons:warm-cache This command looks in all your Twig templates for ``ux_icon()`` calls and -```` tags and caches the icons it finds. +```` tags and caches the icons it finds. .. caution:: @@ -440,18 +440,18 @@ TwigComponent ~~~~~~~~~~~~~ The ``ux_icon()`` function is optimized to be as fast as possible. To deliver the -same level of performance when using the HTML syntax (````), +same level of performance when using the HTML syntax (````), the TwigComponent overhead is reduced by calling the IconRenderer immediately and returning the HTML output. .. warning:: - The component does not support embedded content. + The component does not support embedded content. .. code-block:: twig+html {# The 🧸 will be ignore in the HTML output #} - 🧸 + 🧸 {# Renders "user-profile.svg" #}