Skip to content

Commit b5e4b84

Browse files
committed
minor #1885 [Icons] Document http-client requirement (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Icons] Document http-client requirement | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | Fix #1883 | License | MIT Commits ------- 3044734 [Icons] Document http-client requirement
2 parents 673279f + 3044734 commit b5e4b84

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Icons/doc/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ Loading Icons
6363
and embeds the downloaded SVG contents in the template #}
6464
{{ ux_icon('flowbite:user-solid') }}
6565
66+
.. note::
67+
68+
To search and download icons via `ux.symfony.com/icons`_, the ``symfony/http-client``
69+
package must be installed in your application:
70+
71+
.. code-block:: terminal
72+
73+
$ composer require symfony/http-client
74+
6675
The ``ux_icon()`` function defines a second optional argument where you can
6776
define the HTML attributes added to the ``<svg>`` element:
6877

@@ -74,6 +83,7 @@ define the HTML attributes added to the ``<svg>`` element:
7483
{{ ux_icon('user-profile', {height: '16px', width: '16px', aria-hidden: true}) }}
7584
{# renders <svg height="16" width="16" aria-hidden="true"> ... </svg> #}
7685

86+
7787
Icon Sets
7888
~~~~~~~~~
7989

0 commit comments

Comments
 (0)