To display a list of files, you can use the Files
component.
make(array $files = [],bool $download = true,)
make(array $files = [],bool $download = true,)
$files
- an array of files,$download
- enabling the ability to download files.
use MoonShine\UI\Components\Files;Files::make(['/images/thumb_1.jpg','/images/thumb_2.jpg','/images/thumb_3.jpg',]),
use MoonShine\UI\Components\Files;Files::make(['/images/thumb_1.jpg','/images/thumb_2.jpg','/images/thumb_3.jpg',]),
<x-moonshine::files:files="['/images/thumb_1.jpg','/images/thumb_2.jpg','/images/thumb_3.jpg',]":download="false"/>
<x-moonshine::files:files="['/images/thumb_1.jpg','/images/thumb_2.jpg','/images/thumb_3.jpg',]":download="false"/>