VenueImage
When rendering images returned from Venue you can use this component to render a Next Image that will utilize metadata attached to the image as well as handling sizing parameter. This also includes any Image center positioning that might be set from the backend. Example:
import { VenueImage } from "@venuecms/sdk-next";
export const Event = ({ event }: { event: VenueEvent }) => {
return (
<div>
<VenueImage image={event.image} className="w-full" />
</div>
);
}
Props:
Name
Type
Description
Last updated