Gathering detailed insights and metrics for react-bootstrap-formkit
Gathering detailed insights and metrics for react-bootstrap-formkit
Gathering detailed insights and metrics for react-bootstrap-formkit
Gathering detailed insights and metrics for react-bootstrap-formkit
npm install react-bootstrap-formkit
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Commits
2 Watchers
2 Branches
1 Contributors
Updated on Oct 22, 2020
Latest Version
1.1.5
Package Id
react-bootstrap-formkit@1.1.5
Unpacked Size
12.86 kB
Size
5.09 kB
File Count
4
NPM Version
6.14.8
Node Version
10.19.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
react-bootstrap-formkit is a package for react form creating with bootstrap 4 and It has easy form data handling functionality. In this package, Bootstrap form grid is used for making grid form. There are also facility to use your own bootstrap form class. If you don't provide your own bootstrap class, default style will be applied. This package is now supporting almost every HTML Form Fields. Happy Coding!
If you need a simple bootstrap 4 form, You are in right place. This package will create your desired form with bootstarp 4 grid and provide functionality to handle that form. Lets start!
Almost every HTML form fields are supporting now. Here is a list of major supported fields and their data type.
Field Name | Data Type | Default value |
---|---|---|
text | string | Empty String("") |
radio | string | Field Value |
checkbox | array | Field Value |
file | JS File Object | undefined |
date | JS Date Object or String | undefined |
password | String | Empty String ("") |
number | Number | undefined |
color | String | undefined |
You can use any type of form field. It will render dynamically.
1 2npm i react-bootstrap-formkit 3
Make sure that your project is using bootstrap 4 with CDN (It is recommended) or bootstrap 4 standard classes are accessible in your project. Thats it.
type : required
name: required
label: optional
key: optional but recommended otherwise react will complain.
id: optional but recommended.
className: optional but provide if you want your own style
required: true/false. by default it is false.
This is an array which contains grid information. this package works with bootstrap 4 grid.
Every Field must have type and name attribute otherwise package will complain. you don't have to specify value here unless you define a radio type or checkbox type. radio and checkbox type should have a value.
1let formGrid = 2 [ 3 [ 4 {type: "text", label: "First Name", key: "1", id: "firstname", name: "firstname", required: true}, 5 {type: "text", label: "Last Name", key: "2", id: "lastname", name: "lastname"}, 6 {type: "text", label: "City", key: "3", id: "city", name: "city"}, 7 ], 8 [ 9 {type: "text", label: "Age", key: "4", id: "age", name: "age"}, 10 {type: "text", label: "Address", key: "5", id: "address", name: "address"} 11 ], 12 [ 13 {type: "radio", label: "Male", key: "6", id: "gender", name: "gender", value: "male"}, 14 {type: "radio", label: "Female", key: "7", id: "gender", name: "gender", value: "female"} 15 ], 16 [ 17 {type: "checkbox", label: "Doctor", key: "8", id: "profession", name: "profession", value: "doctor"}, 18 {type: "checkbox", label: "Engineer", key: "9", id: "profession", name: "profession", value: "engineer"} 19 ] 20 ]
For developers freedom, here is an option of designing submit button. This is an object and should have two key-pair value, name and className (bootstrap 4 className)
1let submitBtnInfo = { 2 name: "Submit", 3 className: "btn btn-outline-primary btn-md float-right" 4}
This functionality also developed for developers freedom. This is an handler function and should be defined as asynchronous. This function receive data from form submit and provide developer for further use. You can send data asynchronously from here.
1const handleSubmit = async data => { 2 console.log("On Submit Method Called"); 3 console.log(data); 4};
This is a state management system. This package provide user a state and it will update dynamically when there will any change in form. To define initialValue, Be careful about your field name. This is an object with key-value pair. key is the name attribute of fields. Every name of your fields Props should be entry here as key-value pair. value is your choice. But if you provide a field without entry here, Package will complain.
1 2let initialState = { 3 firstname : "Shohidul", 4 lastname : "Bari", 5 city : "Dhaka", 6 age : undefined, 7 address: undefined, 8 gender: "male", 9 profession: ["engineer"] 10}
1import FormKit from "react-bootstrap-formkit"; 2function App() { 3 4return ( 5 <div className="App"> 6 <div className="container"> 7 <FormKit 8 fields={formGrid} 9 submitButton = {submitBtnInfo} 10 onSubmit = {handleSubmit} 11 initialValue = {initialState} 12 /> 13 </div> 14 </div> 15); 16} 17
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
39 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More