Coder Social home page Coder Social logo

trendingtechnology / builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from builderio/builder

0.0 2.0 0.0 344 KB

Drag and drop page building for any site

Home Page: https://builder.io

License: MIT License

TypeScript 98.43% JavaScript 1.49% HTML 0.09%

builder's Introduction


Builder logo

Drag and drop page building for any website.

Design with your React components, publish remotely.



Editor example




What is it good for?

  • Landing pages
  • Documentation
  • Blogging
  • Marketing pages (homepage, etc)
  • Content pages (about, FAQ, etc)
  • Optimization (ab test pages)
  • Marketing teams that never stop asking for changes
  • Developers who are tired of pushing pixels

Getting Started

npm install --save @builder.io/react

Grab a free account at builder.io and find your API key

import { builder, BuilderComponent } from '@builder.io/react'

builder.init(YOUR_KEY)

Then in your router

<Route path="/something" render={() => <BuilderComponent model="page" />}>

Create a new page and open your-dev-url:port/something and edit!

See our docs site for more info or contact us if you run into any issues or questions!

Using your components

Wrap a component

import { BuilderBlock } from '@builder.io/react'

@BuilderBlock({
  name: 'Simple Text',
  inputs: [{ name: 'text', type: 'string' }]
})
export class SimpleText extends React.Component {
  render() {
    return <h1>{this.props.text}</h1>
  }
}

Then back at your page

import './simple-page'

// ...

<Route path="/something" render={() => <BuilderComponent model="page">}>

Open the dashboard and use it!

See our docs site for additional help and information, or contact us if you run into any issues or questions!

For Builder decorator support you need to be using typescript or babel with legacy decorators. Alternatively you can use the alternative syntax:

import { BuilderBlock } from '@builder.io/react'

class SimpleText extends React.Component {
  render() {
    return <h1>{this.props.text}</h1>
  }
}

BuilderBlock({
  name: 'Simple Text',
  inputs: [{ name: 'text', type: 'string' }]
})(SimpleText)

Don't use React?

Builder webcomponents support all sites and frameworks!

<script src="https://builder.io/js/webcomponents"></script>
<builder-component name="page"></builder-component>

See our official docs on Builder Webcomponents here

Additionally see our HTML API for server side rendering

Troubleshooting and feedback

Problems? Requests? Open an issue. We always want to hear feedback and interesting new use cases and are happy to help.

builder's People

Contributors

steve8708 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.