1.0.8 • Published 4 years ago

@agoransson/bsformhelper v1.0.8

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

Bootstrap Form Helper

A simple library to generate react-bootstrap forms from js objects.

Dependencies

This library is built for react-bootstrap only. It will not work on any other bootstrap implementations.

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>
    );
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago