@agoransson/formhelper
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

Bootstrap Form Helper

A simple library to generate react forms from js objects.

Dependencies

This library is built for react only.

Example

    const loginForm = [
        [
            {type: 'email', name: 'email', placeholder: 'E-post', value: email, onChange: handleEmail}
        ],
        [
            {type: 'password', name: 'password', placeholder: 'Lösenord', value: password, onChange: handlePassword}
        ],
        [
            {type: 'submit', title: 'Logga in'},
        ]
    ];

    return (
        <Form>
            renderForm(loginForm)
        </Form>
    );

Readme

Keywords

Package Sidebar

Install

npm i @agoransson/formhelper

Weekly Downloads

2

Version

1.0.21

License

Apache-2.0

Unpacked Size

102 kB

Total Files

88

Last publish

Collaborators

  • agoransson