This is a React renderer for Framer! You can write React components that render Framer layers.
Framer is great for interaction design. React is great for building complex UIs. Why not combine the two and get the best of both worlds?
react-framer component looks something like this:
const Label =<Layerx=Aligncentery=Aligncenterheight=46width=200backgroundColor="rgba(0,0,0,0.5)"borderRadius=100><Textx=Aligncentery=Aligncenterwidth=200text=textcolor="white"fontSize=17fontWeight=600textAlign="center"lineHeight=46/></Layer>;
To see more, check out the color-picker example code: https://github.com/dabbott/react-framer/blob/master/example/app.js
HSL color-picker prototype: https://dabbott.github.io/react-framer/example
You're welcome to try it out! However,
react-framer is a proof-of-concept and is missing a lot of Framer features. I'm not sure how well it works with Framer Studio, if at all.
Make sure you have
yarn installed and run:
example/index.html in Chrome/Safari to preview the sample app.
Run the webpack dev server with:
Then, navigate to http://localhost:8081/example/ in Chrome/Safari to preview the sample app.