1.7.0 • Published 9 days ago
@forml/decorator-bootstrap v1.7.0
Table of Contents
forml
@forml/decorator-bootstrap - A forml decorator for Bootstrap V4
forml is a lightweight and powerful form generator. Given a JSON schema, it creates React powered forms. This decorator produces forms designed with Bootstrap V4.
Documentation
View the documentation at forml.dev!
Examples
You can view the running demo.
Installation
# Substitute @forml/decorator-mui with your preferred decorator
npm i @forml/core @forml/decorator-bootstrap
Usage
Basic usage is as follows:
import { SchemaForm } from "@forml/core";
import * as decorator from "@forml/decorator-bootstrap";
import { useState } from "react";
export function MyForm(props) {
const [model, setModel] = useState("");
const schema = { type: "string", title: "Sample Form" };
const form = ["*"];
return (
<SchemaForm
model={model}
schema={schema}
decorator={decorator}
form={form}
onChange={onChange}
/>
);
function onChange(event, model) {
setModel(model);
}
}
Contributing
forml prides itself on being easily extensible. More UI packages are being added and contributions are welcome.
2.0.0-next.9
9 days ago
2.0.0-next.6
15 days ago
2.0.0-next.4
16 days ago
2.0.0-next.5
15 days ago
1.8.0-develop.1
6 months ago
2.0.0-next.1
6 months ago
1.5.3
2 years ago
1.7.0
1 year ago
1.6.0
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.3
2 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago