Guest User

Untitled

a guest
Dec 10th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. import * as React from "react";
  2. import { PropertyControls } from "framer";
  3.  
  4. // ================================
  5. // Step 1: import the Img1 from ./canvas
  6. // You can import any design component in your canvas, just make sure you reference it with the right name.
  7. // I named my component Img1 from the Framer X UI.
  8. // ================================
  9. import { Img1 } from "./canvas";
  10.  
  11. // Define type of property
  12. interface Props {}
  13.  
  14. export class ImageComponent extends React.Component<Props, {}> {
  15. static defaultProps = {};
  16.  
  17. static propertyControls: PropertyControls = {};
  18.  
  19. render() {
  20. // ================================
  21. // Use the imported component. Make sure you use it as a JSX element, in particular DON'T do
  22. // `return Img1` or `return new Img1` as they will simply not work.
  23. // ================================
  24. return <Img1 />;
  25. }
  26. }
Add Comment
Please, Sign In to add comment