boost-web-forms-bootstrap
TypeScript icon, indicating that this package has built-in type declarations

1.9.1 • Public • Published

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:

Option Type Description Default Value
columns number The number of total columns in the form 1
isInline boolean Whether to generate an in-line form false
horizontalLabels boolean Whether to put labels and inputs horizontally false
fullWidthSubmit boolean Whether to create a block button for submit false

See

Package Sidebar

Install

npm i boost-web-forms-bootstrap

Weekly Downloads

2

Version

1.9.1

License

ISC

Unpacked Size

2.24 kB

Total Files

3

Last publish

Collaborators

  • lgirma