Skip to content

Instantly share code, notes, and snippets.

@steve8708
Created November 15, 2019 20:30
Show Gist options
  • Save steve8708/b751cd428f046ebf3940706db19cec53 to your computer and use it in GitHub Desktop.
Save steve8708/b751cd428f046ebf3940706db19cec53 to your computer and use it in GitHub Desktop.
Example Cloudinary Image rendering component in Builder.io
import React from 'react';
import { withBuilder } from '@builder.io/react';
class CloudinaryImageComponent extends React.Component {
render() {
return <img src={this.props.image} />
}
}
export const CloudinaryImage = withBuilder(CloudinaryImageComponent, {
inputs: [
{ name: 'image', type: 'cloudinaryImage' }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment