[Alpha] Decouple Bootstrap
Pre-release
Pre-release
·
8 commits
to main
since this release
What's Changed
- Add Styles Schema and remove Bootstrap Dependency by @iMuhammadMustafa in #2
Full Changelog: v0.1.5-beta...v0.9.0-beta
You will now have to provide the css classes in defaultStyles field or the stylesSchema field of the input schema.
StylesSchema inside an input will override the default styles of the form
defaultStyles: {
title: "text-center mb-3",
form: "row",
buttons: {
wrapper: "text-center",
submit: "btn btn-primary mx-2 btn-sm",
clear: "btn btn-danger mx-2 btn-sm",
},
inputs: {
fieldWrapper: "mb-3 row",
inputWrapper: "col-sm-10",
input: "form-control",
label: "col-sm-2 col-form-label",
placeHolder: "",
helpText: "form-text",
},
},Or
stylesSchema: {
fieldWrapper: "mb-3 row",
inputWrapper: "col-sm-10",
input: "form-control",
label: "col-sm-2 col-form-label",
placeHolder: "",
helpText: "form-text",
},