I would expect the position of the checkboxes to be aligned with the form inputs. Less ideally, the requirement to have 2 columns that sum to 12 could be documented in the Guide.
import React, { Component } from 'react';
import t from 'tcomb-form'
import 'bootstrap/dist/css/bootstrap.min.css'
const FormSchema = t.struct({
name: t.String,
age: t.maybe(t.Number),
rememberMe: t.Boolean
})
const options = {
config: {
horizontal: {
md: [1, 6],
sm: [1, 8]
},
}
};
class MyForm extends Component {
render() {
return (
<form onSubmit={this.onSubmit} className="tcomb-form form-horizontal label-left">
<t.form.Form ref="form" type={type} options={options} />
<div className="form-group">
<button type="submit" className="btn btn-primary">Save</button>
</div>
</form>
);
}
}
I can prepare a fix, but at a glance it will require quite a bit of refactoring to Breakpoints.js
.