form-builder-wc
v0.0.2
Published
Form Builder (Web Component)
Downloads
2
Readme
Dynamic Form Builder
Dynamic Form Builder is a reusable, customizable web component built using Stencil.js that allows easy integration of dynamic forms into any web application.
Features
- Dynamic Form Rendering: Render forms dynamically based on JSON configuration.
- Customizable Styles: Scoped CSS for easy customization.
- TypeScript Support: Built with TypeScript for type safety and intellisense in supported IDEs.
- Shadow DOM: Uses Shadow DOM for style encapsulation.
Installation
Install Dynamic Form Builder via npm by running:
npm install form-builder-wc --save
Usage
After installing, you can use this component in your web projects:
import 'form-builder-wc';
// ...
<dynamic-form-builder clientId="CLIENT_ID" formId="FORM_ID"></dynamic-form-builder>
Replace CLIENT_ID
and FORM_ID
with the appropriate values for your form.
Properties
clientId
: String that specifies the client ID associated with the form.formId
: String that specifies the unique ID of the form.
Styling
To override the default styles, modify the form-builder.css
file in your local copy of the component or provide global styles as necessary.
Contributing
Contributions are always welcome! Please read the contribution guidelines first.
License
This project is licensed under the MIT License - see the LICENSE file for details.