1.9.1 • Published 3 years ago

boost-web-forms-bootstrap v1.9.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

boost-web-forms-bootstrap

Plugin for boost-web-forms to enable the popular bootstrap UI kit. Supports all v3, v4, v5 versions.

Installation

npm i boost-web-forms-bootstrap

Usage

Add the bootstrap form layout in your form config's layout option

import {Bootstrap4Form} from 'boost-web-forms-bootstrap'

const formConfig = {
    layout: Bootstrap4Form()
}
renderForm(forObject, document.body, formConfig)
const formConfigWithOptions = {
    layout: Bootstrap4Form({columns: 2})
}

Options

The plugin includes the following options:

OptionTypeDescriptionDefault Value
columnsnumberThe number of total columns in the form1
isInlinebooleanWhether to generate an in-line formfalse
horizontalLabelsbooleanWhether to put labels and inputs horizontallyfalse
fullWidthSubmitbooleanWhether to create a block button for submitfalse

See