The component uses the frame component for the image's box. The frame
needs to be built before the image.
build_frame()
build_image()
To use a frame build with a different name, set the frame option.
build_frame(name: :media_frame, ratios: ["21:9"])
build_image(frame: &__MODULE__.media_frame/1)
Maturity: Developing
Usage
<.image
src="https://github.com/woylie/doggo/blob/main/assets/images/dog_1.webp?raw=true"
alt="A gray-muzzled dog in a camouflage coat and harness."
ratio="16:9"
>
<:caption>
Canine couture, spring collection: the season's boldest silhouettes, worn
on four legs.
</:caption>
</.image>