Skip to content

Instantly share code, notes, and snippets.

@steve8708
Created November 15, 2019 20:30
Show Gist options
  • Select an option

  • Save steve8708/b751cd428f046ebf3940706db19cec53 to your computer and use it in GitHub Desktop.

Select an option

Save steve8708/b751cd428f046ebf3940706db19cec53 to your computer and use it in GitHub Desktop.

Revisions

  1. steve8708 created this gist Nov 15, 2019.
    14 changes: 14 additions & 0 deletions BuilderCloudinaryImage.tsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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' }
    ]
    }