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
1414
1515- Add ` aliases ` configuration option to define icon alternative names.
1616- Add support for ` int ` and ` float ` attribute values in ` <twig:ux:icon /> ` .
17+ - Add support for Icon sets, configurable with ` icon_sets ` option.
1718
1819## 2.19.0
1920
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
2122 icon is not found.
2223
2324## 2.17.0
Original file line number Diff line number Diff line change @@ -628,6 +628,21 @@ Full Configuration
628628 # Whether to ignore errors when an icon is not found
629629 ignore_not_found : false
630630
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+
631646 Learn more
632647----------
633648
You can’t perform that action at this time.
0 commit comments