Socket
Socket
Sign inDemoInstall

react-simple-form-builder

Package Overview
Dependencies
24
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-simple-form-builder

React simple form builder


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Install size
6.70 MB
Created
Weekly downloads
 

Readme

Source

React simple form builder

NPM

npm version Build Status Coverage Status Linux Build Windows Build

Dependency Status devDependency Status NSP Status

License GitHub stars GitHub forks GitHub issues Twitter

Demo

git clone https://github.com/evheniy/react-simple-form-builder.git
cd react-simple-form-builder
npm i
npm run server

Open http://127.0.0.1:3000/

How to install

npm i -S react-simple-form-builder

How to use

import builder from 'react-simple-form-builder';

Label

const Label = builder.components.Label;

ReactDOM.render(
    <Label>label</Label>,
    document.getElementById('root')
);

List

const List = builder.components.List;

eactDOM.render(
    <List items={[
        <Label id="1">text1</Label>,
        <Label id="2">text2</Label>,
    ]} />,
    document.getElementById('root')
);

Button

const Button = builder.components.Button;

ReactDOM.render(
    <Button value={'button'} />,
    document.getElementById('root')
);

Text

const Text = builder.components.Text;

ReactDOM.render(
    <Text value={'text'} />,
    document.getElementById('root')
);

Submit

const Submit = builder.components.Submit;

ReactDOM.render(
    <Submit value={'submit'} />,
    document.getElementById('root')
);

Checkbox

const Checkbox = builder.components.Checkbox;

ReactDOM.render(
    <Label children={[
        <Checkbox value={'checkbox'} />,
        'checkbox',
    ]} />,
    document.getElementById('root')
);

Form

const Form = builder.components.Form;

ReactDOM.render(
    <Form method="GET" action="/" children={<List items={[
        <Label id="1">label</Label>,
        <Text value="5" id="5" />,
        <Label children={[
            <Checkbox value={'checkbox'} />,
            'checkbox'
        ]} text="test" id="4" />,
        <Button value={'button'} id="2" />,
        <Submit value={'submit'} id="3" />,
    ]} />} />,
    document.getElementById('root')
);

Testing

npm t

Keywords

FAQs

Last updated on 26 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc