File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ We recommend you to **lock** your icons **before** upgrading to UX Icons 2.24. W
14
14
15
15
- Add ` aliases ` configuration option to define icon alternative names.
16
16
- Add support for ` int ` and ` float ` attribute values in ` <twig:ux:icon /> ` .
17
+ - Add support for Icon sets, configurable with ` icon_sets ` option.
17
18
18
19
## 2.19.0
19
20
20
- - Add ` ignore_not_found ` option to silence error during rendering if the
21
+ - Add ` ignore_not_found ` option to silence error during rendering if the
21
22
icon is not found.
22
23
23
24
## 2.17.0
Original file line number Diff line number Diff line change @@ -628,6 +628,21 @@ Full Configuration
628
628
# Whether to ignore errors when an icon is not found
629
629
ignore_not_found : false
630
630
631
+ # Icon sets configuration, array of prefix => icon set configuration
632
+ icon_sets :
633
+ # Icon set for "flags", can be used like this: ux_icon('flags:fr')
634
+ flags :
635
+ It can either be mapped to a local directory...
636
+ path : ' %kernel.project_dir%/assets/images/flags'
637
+ ... or to an existing icon set identifier
638
+ alias : ' lucide'
639
+
640
+ # Override the default attributes (default_icon_attributes) for this icon set
641
+ icon_attributes :
642
+ class : ' flag' # Replace the default class
643
+ stroke : ' none' # Add a new attribute
644
+ fill : false # Use "false" to remove a default attribute
645
+
631
646
Learn more
632
647
----------
633
648
You can’t perform that action at this time.
0 commit comments