Modals
Introduction
Create a Livewire File
<?php
namespace App\Http\Sections\BrooklynBedding\Modals;
use LivewireUI\Modal\ModalComponent;
class Image extends ModalComponent
{
public string $image;
public function mount(string $image)
{
$this->image = $image;
}
/**
* Supported: 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl'
*/
public static function modalMaxWidth() : string
{
return '6xl';
}
public function render()
{
return view('brooklyn-bedding.modals.image');
}
}