symfony / ux-icons
Renders local and remote SVG icons in your Twig templates.
Fund package maintenance!
fabpot
Tidelift
symfony.com/sponsor
Installs: 624 611
Dependents: 24
Suggesters: 0
Security: 0
Stars: 23
Watchers: 5
Forks: 2
Type:symfony-bundle
Requires
- php: >=8.1
- symfony/framework-bundle: ^6.4|^7.0
- symfony/twig-bundle: ^6.4|^7.0
Requires (Dev)
- psr/log: ^2|^3
- symfony/asset-mapper: ^6.4|^7.0
- symfony/console: ^6.4|^7.0
- symfony/http-client: 6.4|^7.0
- symfony/phpunit-bridge: ^6.3|^7.0
- symfony/ux-twig-component: ^2.14
- zenstruck/console-test: ^1.5
Conflicts
- symfony/flex: <1.13
- symfony/ux-twig-component: <2.21
README
Renders local and remote SVG icons in your Twig templates.
{# Twig function.. #} {{ ux_icon('mdi:check', {class: 'w-4 h-4'}) }} {# .. or Twig Component #} <twig:ux:icon name="mdi:check" class="w-4 h-4" /> {# Render the "check" icon from "mdi" pack with class #} <svg viewBox="0 0 24 24" fill="currentColor" class="w-4 h-4"> <path d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z"/> </svg>
Check out ux.symfony.com/icons for a demo!
Sponsor
The Symfony UX packages are backed by Mercure.rocks.
Create real-time experiences in minutes! Mercure.rocks provides a realtime API service that is tightly integrated with Symfony: create UIs that update in live with UX Turbo, send notifications with the Notifier component, expose async APIs with API Platform and create low level stuffs with the Mercure component. We maintain and scale the complex infrastructure for you!
Help Symfony by sponsoring its development!
Important
This repository is a READ-ONLY sub-tree split.
See https://github.com/symfony/ux to create issues or submit pull requests.