oxblade-icons

Render inline SVG icons in Rust and oxblade with the same class and attribute rules as Blade Icons.

The renderer ports blade-ui-kit/blade-icons. It resolves an icon name such as heroicon-o-home to an SVG, merges default and per-call classes and attributes the way Blade Icons does, and returns the <svg> markup. It works from plain Rust, from oxblade templates, and from a Laravel for Rust application. Icon artwork comes from separate crates, such as the Heroicons and Lucide sets in oxblade-icon-sets, or from your own SVGs.

Install the renderer with cargo add oxblade-icons.

If you want to…Read
Install the package and render a first iconGetting started
Register generated sets, your own SVGs, defaults and fallbacksIcon sets
Pass classes and attributes, add titles and labels, handle errorsRendering icons
Use svg(), @svg, <x-icon> and <x-heroicon-o-home /> in templatesBlade templates
Register icons in a Laravel for Rust applicationLaravel
Find the Rust equivalent of a PHP callMigrating from PHP