@@ -16,6 +16,18 @@ Installation
16
16
17
17
$ composer require symfony/ux-icons
18
18
19
+ If you plan to use provided icon sets, make sure that you have the HTTP client installed:
20
+
21
+ .. code-block :: terminal
22
+
23
+ $ composer require symfony/http-client
24
+
25
+ If you plan to use the optional HTML syntax, also install the ux-twig-component:
26
+
27
+ .. code-block :: terminal
28
+
29
+ $ composer require symfony/ux-twig-component
30
+
19
31
SVG Icons
20
32
---------
21
33
@@ -63,15 +75,6 @@ Loading Icons
63
75
and embeds the downloaded SVG contents in the template #}
64
76
{{ ux_icon('flowbite:user-solid') }}
65
77
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
78
The ``ux_icon() `` function defines a second optional argument where you can
76
79
define the HTML attributes added to the ``<svg> `` element:
77
80
@@ -87,6 +90,15 @@ define the HTML attributes added to the ``<svg>`` element:
87
90
Icon Sets
88
91
~~~~~~~~~
89
92
93
+ .. note ::
94
+
95
+ To use icons from icon sets via `ux.symfony.com/icons `_, the ``symfony/http-client ``
96
+ package must be installed in your application:
97
+
98
+ .. code-block :: terminal
99
+
100
+ $ composer require symfony/http-client
101
+
90
102
There are many icon sets available, each with their own unique style and set of
91
103
icons, providing a wide range of icons for different purposes, while maintaining
92
104
a consistent look and feel across your application. Here are some of the most
0 commit comments