Skip to content

Img

The Img component renders an image with email-safe defaults and optional dimensions. It automatically includes display block and removes borders and outlines for consistent rendering.

Usage

blade
<x-envelop::img
  src="https://example.com/image.jpg"
  alt="Description of image"
  width="600"
  height="400"
/>

Props

PropTypeRequiredDefaultDescription
srcstringYes-Image URL (absolute path)
altstringNo''Alternative text for accessibility
widthstringNonullImage width in pixels
heightstringNonullImage height in pixels
classstringNo''Atomic CSS utility classes

Released under the MIT License.