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 icon | Getting started |
| Register generated sets, your own SVGs, defaults and fallbacks | Icon sets |
| Pass classes and attributes, add titles and labels, handle errors | Rendering icons |
Use svg(), @svg, <x-icon> and <x-heroicon-o-home /> in templates | Blade templates |
| Register icons in a Laravel for Rust application | Laravel |
| Find the Rust equivalent of a PHP call | Migrating from PHP |