symfony/ux-icons
Render local and remote SVG icons in Twig with the ux_icon() function or the twig:ux:icon component. Pull icons from any registered pack, like mdi:check, and style them inline with classes. Browse the full icon set and live demo at ux.symfony.com/icons.
iconify.auto_lock option to persist "on demand" icons to the local icon directory as they are renderedSanitize rendered SVG icons (Iconify bodies and local files) to prevent XSS. Removed from icon output:
<script>, <foreignObject>, <iframe>, <object>, <embed>, <handler><animate>, <set>, <animateTransform>, <animateMotion>) when they target an on*, href or xlink:href attributeon*, e.g. onload, onclick) on every elementhref / xlink:href values with a non-allowlisted scheme such as javascript:, vbscript:, data:text/html or data:image/svg+xml (allowed: http(s), mailto, tel, data:image/* raster, fragments and relative URLs)<style> elements are kept (so light/dark-mode theming keeps working), with their event-handler attributes stripped and </style> breakouts dropped.
Clear your icon cache after upgrading so already-cached icons are re-sanitized.
symfony/http-client is not installed.xmlns attribute to icons downloaded with Iconify, to correctly render icons browser as an external file, in SVG editors, and in files explorers or text editors previews.
It may breaks your pipeline if you assert on ux_icon() or <twig:ux:icon> output in your tests, and forgot to lock your icons.
We recommend you to lock your icons before upgrading to UX Icons 2.24. We also suggest you to to force-lock your icons after upgrading to UX Icons 2.24, to add the attribute xmlns to your icons already downloaded from Iconify.aliases configuration option to define icon alternative names.int and float attribute values in <twig:ux:icon />.icon_sets option.ignore_not_found option to silence error during rendering if the
icon is not found.How can I help you explore Laravel packages today?