prismicio / prismic-svelte

Svelte components and helpers to fetch and present Prismic content
https://prismic.io/docs/technical-reference/prismicio-svelte
Apache License 2.0
21 stars 6 forks source link

feat: create `<PrismicImage>` component #5

Closed samlfair closed 1 year ago

samlfair commented 1 year ago

Types of changes

Description

Create a <PrismicImage /> component that renders an img element with src, srcset, width, height, and alt attributes. Accepts class, widths, and imgixParams props.

Checklist:

kitten

angeloashmore commented 1 year ago

The changes look good! I left two comments re: alt and the srcSet helpers.

Once those changes are in place, I think we'll be good to merge and publish.