The Form.io Standard Template
Getting Started
npm install @formio/standard-templateimport { Formio } from '@formio/js';
import { standardTemplate, BOOTSTRAP_EXAMPLE } from '@formio/standard-template';
Formio.use(standardTemplate(BOOTSTRAP_EXAMPLE));
Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/example');How It Works
{
/* ... */
// the input component template
"input": {
// the "form" render mode
"form": {
// the input element and its CSS class names
"input": ["form-control"],
// the suffix and prefix
"suffix": ["input-group-text"],
"prefix": ["input-group-text"],
/* ... */
}
}
/* ... */
}
Last updated
Was this helpful?
