@@ -16,6 +16,15 @@ Installation
16
16
17
17
$ composer require symfony/ux-icons
18
18
19
+ HTTP Client for On-Demand Icons
20
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21
+
22
+ If you plan to use provided icon sets, make sure that you have the HTTP client installed:
23
+
24
+ .. code-block :: terminal
25
+
26
+ $ composer require symfony/http-client
27
+
19
28
SVG Icons
20
29
---------
21
30
@@ -63,15 +72,6 @@ Loading Icons
63
72
and embeds the downloaded SVG contents in the template #}
64
73
{{ ux_icon('flowbite:user-solid') }}
65
74
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
-
75
75
The ``ux_icon() `` function defines a second optional argument where you can
76
76
define the HTML attributes added to the ``<svg> `` element:
77
77
@@ -87,6 +87,15 @@ define the HTML attributes added to the ``<svg>`` element:
87
87
Icon Sets
88
88
~~~~~~~~~
89
89
90
+ .. note ::
91
+
92
+ To use icons from icon sets via `ux.symfony.com/icons `_, the ``symfony/http-client ``
93
+ package must be installed in your application:
94
+
95
+ .. code-block :: terminal
96
+
97
+ $ composer require symfony/http-client
98
+
90
99
There are many icon sets available, each with their own unique style and set of
91
100
icons, providing a wide range of icons for different purposes, while maintaining
92
101
a consistent look and feel across your application. Here are some of the most
@@ -166,7 +175,7 @@ HTML Syntax
166
175
167
176
In addition to the ``ux_icon() `` function explained in the previous sections,
168
177
this package also supports an alternative HTML syntax based on the ``<twig:ux:icon> ``
169
- tag:
178
+ tag if the `` symfony/ux-twig-component `` package is installed :
170
179
171
180
.. code-block :: html
172
181
0 commit comments