rc-form-builder
v1.0.2
Published
A web package for building form generating applications in a fly.
Downloads
2
Readme
rc-form-builder
A web SDK for building form generating applications in a fly.
Install
npm install --save rc-form-builder
yarn add rc-form-builder
Usage
import React from 'react'
import { FormBuilder } from 'rc-form-builder'
import 'rc-form-builder/dist/styles/style.css'
const App = (props) => {
const onSaveForm = (data) => {
console.log(data)
return data
}
return (
<FormBuilder uploadAddress={'upload-url'} {...props} onSave={onSaveForm} />
)
}
export default App
Styling with UI-kit
Paste the following lines on your index.html file
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css"
/>
<!-- UIkit JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>
License
< -->-- Databeaver©