• Stars
    star
    207
  • Rank 189,769 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create Framer (https://framer.com) prototypes using React (https://reactjs.org/)

React Framer

This is a React renderer for Framer! You can write React components that render Framer layers.

You can try it out in your browser using this codepen template: https://codepen.io/pen?template=BJjyMR

Or play with this more fully-featured HSL color-picker prototype (originally written by the Framer team): https://dabbott.github.io/react-framer/example

This project is a proof-of-concept and is missing a lot of React/Framer features. I'm not sure how well it works with Framer Studio, if at all.

Why?

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?

A react-framer component looks something like this:

const Label = ({ text }) => (
  <Layer
    x={Align.center}
    y={Align.center}
    height={46}
    width={200}
    backgroundColor={"rgba(0,0,0,0.5)"}
    borderRadius={100}
  >
    <Text
      x={Align.center}
      y={Align.center}
      width={200}
      text={text}
      color={"white"}
      fontSize={17}
      fontWeight={600}
      textAlign={"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

Instructions

Make sure you have yarn installed and run:

yarn
yarn build

Then, open example/index.html in Chrome/Safari to preview the sample app.

Hacking

Run the webpack dev server with:

yarn dev

Then, navigate to http://localhost:8081/example/ in Chrome/Safari to preview the sample app.

More Repositories

1

react-express

Learn React through interactive examples
TypeScript
2,615
star
2

react-native-express

The all-in-one guide to React Native
TypeScript
1,863
star
3

javascript-playgrounds

An interactive JavaScript sandbox
TypeScript
1,397
star
4

studio721

Free tools for NFT creators
TypeScript
268
star
5

UberExercise

Learn React Native by building the Uber app!
JavaScript
178
star
6

javascript-express

Learn JavaScript & TypeScript through interactive examples
JavaScript
46
star
7

tree-visit

A tree traversal library.
TypeScript
31
star
8

react-scrollview

React ScrollView for web and mobile web, API-compatible with react-native - http://dabbott.github.io/react-scrollview
CoffeeScript
31
star
9

react-europe-conference-app

JavaScript
26
star
10

react-styles-provider

Provide dynamic styles to your React components in a performant way.
JavaScript
24
star
11

vscode-import-js

VSCode extension for ImportJS
JavaScript
23
star
12

react-webpack-babel-tutorial

Hello World in React, bundled with webpack 2, using ES6 + JSX!
JavaScript
18
star
13

ride-share

React Native components for a ride-sharing app.
JavaScript
16
star
14

generate-guidebook

Generate a guidebook website. Includes next.js plugin.
JavaScript
11
star
15

file-tree

JavaScript
10
star
16

webdev-express

A guide to web development cover HTML, CSS, TypeScript, and React
TypeScript
10
star
17

webpack-tutorial

Hello World in webpack 2!
JavaScript
9
star
18

FramerScrollPhysicsDemos

Framer scroll physics demos
JavaScript
8
star
19

react-dashboard-example

A React & TypeScript dashboard app
TypeScript
7
star
20

towerdefense

WebGL Tower Defense
JavaScript
6
star
21

expo-cameraroll

A drop-in replacement for react-native-cameraroll that leverages Expo's MediaLibrary API
JavaScript
5
star
22

svg-to-lottie

Convert SVG files to Lottie JSON files (proof-of-concept)
JavaScript
5
star
23

react-ctx

React Context helpers, for library authors
JavaScript
4
star
24

react-start

React app boilerplate
JavaScript
4
star
25

friendly-frame

Communicate between iFrames
HTML
4
star
26

imfs

An in-memory filesystem-like data structure.
TypeScript
3
star
27

react-workspace

User-configurable single-page-app UI
JavaScript
2
star
28

canvas-lambda

HTML
2
star
29

CarouselTest

Test generated carousels
Swift
2
star
30

buffs

A filesystem utility, supporting batch & in-memory operations
TypeScript
2
star
31

car-file

A library for working with IPFS Car πŸš— files
TypeScript
1
star
32

lona-sketch-example

JavaScript
1
star
33

contract-testing-library

A testing library for EVM-based contracts
TypeScript
1
star
34

MicroCards

JavaScript
1
star
35

dashboard-json-server

A JSON server for a crypto dashboard exercise
1
star
36

java.handlebars

A Java implementation of the Handlebars templating language.
Java
1
star
37

InstantTable

Collaborative tables, built with InstantDB
TypeScript
1
star