Checkbox
A boolean with a label beside it — featured, active, “yes I agree,” etc.
Standalone
Section titled “Standalone”from almasix.orbit.forms import Form, Checkbox
form = Form.make("demo").schema([ Checkbox.make("featured").label("Featured on homepage")])In a Resource
Section titled “In a Resource”from almasix.orbit import Resourcefrom almasix.orbit.forms import Form, Checkbox
class PostResource(Resource): @classmethod def form(cls, form: Form) -> Form: return form.schema([ Checkbox.make("is_published").label("Published"), Checkbox.make("notify").default(True), ])Key methods
Section titled “Key methods”.label(...) — rendered next to the input.default(True|False).disabled(...) / .visible(...) / .readonly().required(...) when the box must be checked
Closures work on .label(), .helper_text(), .placeholder(), .visible(), .disabled(), and .required() — see Form closures.
Preview
Section titled “Preview”
