Image

Display a styled image. If no alt-text is provided, the alt attribute will contain an empty string so screen readers will likely interpret the image as decorative.

Set the dimensions via utility classes. The image is automatically contained and properly placed within its container.

'src',
'alt' => ' ',
<x-image src="path/to/image" class="w-[160px]" />
<x-image src="path/to/image" class="w-[320px] h-[160px]" />