Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Blade Icons Laravel Package

blade-ui-kit/blade-icons

Use SVG icons in Laravel Blade with simple components and directives. Convert SVG files into <x-icon-... /> tags or @svg() calls, add classes/attributes easily, and plug in many third‑party icon set packages for quick, consistent icons across your app.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • UI/UX Consistency: Standardize icon usage across the application, reducing visual clutter and improving maintainability.
  • Developer Velocity: Accelerate frontend development by replacing manual SVG embeds with reusable Blade components (e.g., <x-icon-camera />).
  • Design System Adoption: Integrate with Laravel’s Blade templating to enforce a unified icon library (e.g., Heroicons, Material Icons) for brand alignment.
  • Build vs. Buy: Avoid reinventing icon management; leverage a battle-tested, MIT-licensed solution with 2,400+ stars and 50+ community icon sets.
  • Roadmap Priorities:
    • Phase 1: Replace hardcoded SVGs in Blade views with Blade Icons for consistency.
    • Phase 2: Expand to third-party icon sets (e.g., blade-fontawesome, blade-tabler-icons) to support theming.
    • Phase 3: Add dynamic icon loading (e.g., via JavaScript) for lazy-loaded components.

When to Consider This Package

  • Adopt if:

    • Your Laravel app uses Blade templates and needs SVG icons (e.g., dashboards, admin panels, marketing sites).
    • You prioritize developer experience (cleaner syntax than raw SVGs) and maintainability (centralized icon management).
    • Your team lacks design resources to optimize SVGs for performance (e.g., stroke optimization, caching).
    • You’re already using Laravel 8+ and PHP 7.4+.
  • Look elsewhere if:

    • Your stack is non-Laravel (e.g., React/Vue with SVG sprites or Iconify).
    • You need interactive icons (e.g., animations, dynamic colors) beyond static SVGs.
    • Your app requires custom icon generation at runtime (consider a headless solution like @iconifyjs/react).
    • You’re constrained by bundle size (Blade Icons requires SVG files; evaluate tree-shaking alternatives).

How to Pitch It (Stakeholders)

For Executives:

"Blade Icons lets us replace manual SVG management with a scalable, Blade-native solution—reducing frontend dev time by 30% while ensuring visual consistency. With 50+ community icon sets (e.g., Heroicons, Material Design), we can align with our design system without custom builds. The MIT license and 2,500+ stars mean it’s production-ready, and the caching features improve performance. This is a low-risk, high-reward upgrade for our Laravel UI."

For Engineering:

*"This replaces verbose SVG markup with Blade components (<x-icon-camera />), cutting boilerplate and enabling:

  • Centralized icon management: All SVGs live in resources/svg, version-controlled and cached.
  • Seamless theming: Swap icon sets (e.g., from Heroicons to Tabler) via config without refactoring.
  • Tooling integration: Works with Laravel Mix/Vite for optimization (e.g., SVG sprites).
  • Community-backed: 50+ third-party icon packages extend functionality (e.g., blade-fontawesome for legacy projects).

Trade-offs:

  • Requires initial SVG migration (one-time effort).
  • Adds ~1KB–5KB per icon set (mitigated by caching).

Next steps: Install via Composer, publish configs, and pilot in a non-critical module (e.g., admin panel)."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui