Is your feature request related to a problem? Please describe.
@prismicio/react does not currently provide a helper for rendering Image fields. A simple image component could be provided as a wrapper around @prismicio/helpers's Image field helpers.
Note: Even after implementing such a component, framework-specific image integrations should be preferred over this component. Framework-specific integrations can generally offer a better experience, such as base64 image placeholders.
For example, use Next.js's next/image component or Gatsby's gatsby-plugin-image component if you are using those frameworks. Only use @prismicio/react's image component if your environment does not have a built-in optimized image component.
Is your feature request related to a problem? Please describe.
@prismicio/react
does not currently provide a helper for rendering Image fields. A simple image component could be provided as a wrapper around@prismicio/helpers
's Image field helpers.Note: Even after implementing such a component, framework-specific image integrations should be preferred over this component. Framework-specific integrations can generally offer a better experience, such as base64 image placeholders.
For example, use Next.js's
next/image
component or Gatsby'sgatsby-plugin-image
component if you are using those frameworks. Only use@prismicio/react
's image component if your environment does not have a built-in optimized image component.Describe the solution you'd like
See #140
Describe alternatives you've considered
@prismicio/helpers
's Image field helpers can be used directly.Additional context
This component should be modeled after
@prismicio/vue
's<PrismicImage>
component.