View Source SqueezeWeb.CloudflareImageHelpers (OpenPace v0.0.1)
A component to generate Cloudflare image tags with the given image_id and options.
Link to this section Summary
Functions
Generates an image tag with the given image_id and options.
Link to this section Functions
Generates an image tag with the given image_id and options.
examples
Examples
<.cloudflare_img
src={Routes.static_path(SqueezeWeb.Endpoint, "/images/home/overview.jpg")}
height={100}
width={100}
class="rounded-xl shadow-xl ring-1 ring-gray-400/10"
/>
attributes
Attributes
src(:string) (required)height(:integer) (required)width(:integer) (required)alt(:string) (required)cloudflare_opts(:list) - Defaults to[].class(:string) - Defaults to"".