TailwindMerge for Laravel

from blog Sebastian De Deyne, | ↗ original
↗ original
I've been writing more Blade + Tailwind the past few weeks. Coming from React + Tailwind I really missed tailwind-merge and clsx, but luckily came across this great package from Sandro Gehri. {{-- components/button.blade.php --}}button {{ $attributes ->merge(['type' => 'submit']) ->twMerge('bg-green-500') }}> {{ $slot...