{{-- -- Important note: -- -- This template is based on an example from Tailwind UI, and is used here with permission from Tailwind Labs -- for educational purposes only. Please do not use this template in your own projects without purchasing a -- Tailwind UI license, or they’ll have to tighten up the licensing and you’ll ruin the fun for everyone. -- -- Purchase here: https://tailwindui.com/ --}} @props(['id', 'maxWidth']) @php $id = $id ?? md5($attributes->wire('model')); switch ($maxWidth ?? '2xl') { case 'sm': $maxWidth = 'sm:max-w-sm'; break; case 'md': $maxWidth = 'sm:max-w-md'; break; case 'lg': $maxWidth = 'sm:max-w-lg'; break; case 'xl': $maxWidth = 'sm:max-w-xl'; break; case '2xl': default: $maxWidth = 'sm:max-w-2xl'; break; } @endphp