1.0.10 • Published 12 months ago

easy-form-builder v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Form Builder Component

A reusable form component built with React and NextUI. This component supports various input types, repeatable fields, and dynamic options.

Installation

Example

const fields = [
        {
            key: 'name',
            type: 'text',
            label: 'Name',
        },
        {
            key: 'email',
            type: 'text',
            label: 'Email',
        },
        {
            key: 'gender',
            label: 'Gender',
            type: 'radio',
            options: [
                {
                    value: 'male',
                    label: 'Male',
                },
                {
                    value: 'female',
                    label: 'Female',
                }
            ],
        },
    ]

    const initialValues = {
        email: ''
    }

    const handleFormSubmit = (data) => {
        console.log( data )
        // console.log( JSON.stringify(data) )
    };
1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago