postare/blade-mdi
Laravel package providing Material Design Icons as Blade UI Kit components. Includes updated dependencies, new icons, and SVGs set to fill="currentColor" for Tailwind CSS. Use icons like and optionally publish SVGs locally.
<x-mdi-icon />). The package’s design as a UI kit for Blade minimizes abstraction layers, making it a seamless extension of Laravel’s native rendering pipeline.fill=currentColor enhancement ensures compatibility with Tailwind CSS and dynamic theming.@mdi or <x-mdi-icon />), which are natively supported in Laravel 12. Verify compatibility with Laravel 12’s updated Blade compiler (e.g., @props in components).@mdi($iconName)) to ensure no breaking changes in variable interpolation.define config or PurgeCSS optimization).{{ icon('home') }}) remains functional or if new syntax is required for the 80 icons. Check for deprecated helpers or renamed icons.@props syntax). Test if the package’s components (e.g., <x-mdi-icon />) conflict with these changes.@vite(['resources/svgs/*.svg'])) work as expected. Risks include misconfigured asset paths or missing SVGs in production builds.webpack-bundle-analyzer or Lighthouse, especially for mobile users.aria-hidden="true" for decorative icons). Test with screen readers.@props) when using <x-mdi-icon />?define config) for SVG optimization?{{ icon('home') }}) work unchanged, or are new syntax rules required for the 80 icons?fill=currentColor enhancement ensures seamless integration with Tailwind’s utility classes (e.g., text-red-500).<Icon name="home" />) and pass dynamic props for theming. Example:
<template>
<component :is="`x-mdi-${iconName}`" class="text-blue-500" />
</template>
<img src="/icons/home.svg" alt="Home">).icon('home')) and manually include SVG files.renoki-co/blade-mdi).Pre-Integration Assessment:
<x-mdi-icon />).Pilot Integration:
resources/views/partials/navigation.blade.php).
<x-mdi-account />) works as expected. Update templates if syntax changes are required.npm run dev or mix) and verify SVGs are included. Check for 404 errors or missing assets.Full Rollout:
composer.json to postare/blade-mdi:^1.1.2 and run composer update.php artisan vendor:publish --provider="Postare\BladeMdi\BladeMdiServiceProvider" --tag="blade-mdi"
<x-mdi-icon name="account" />). Use a regex search/replace tool for largeHow can I help you explore Laravel packages today?