diff --git a/docs/forms.rst b/docs/forms.rst index 3f415e9b..ecdd2b3a 100644 --- a/docs/forms.rst +++ b/docs/forms.rst @@ -55,8 +55,23 @@ Floating labels Reference: https://getbootstrap.com/docs/5.0/forms/floating-labels/ -This behavior can be triggere dby setting `layout="floating"`. +This behavior can be triggered by setting `layout="floating"`. Floating labels are supported for widgets that can use `form-control`. An exception is `FileInput` and its descendants, those labels cannot be floating. -Setting `layout="floating"` has no effect on widgets that are not supported. \ No newline at end of file +Setting `layout="floating"` has no effect on widgets that are not supported. + +Horizontal forms +---------------- + +Reference: https://getbootstrap.com/docs/5.0/forms/layout/#horizontal-form + +This behavior can be triggered by setting `layout="horizontal"`. + +In a horizontal layout, labels and field will receive different styling, resulting in a horizontal layout on supported viewports. + +These parameters contain the classes for labels and fields: + +- `horizontal_label_class` The class for the label +- `horizontal_field_class` The class for the section with field, help text and errors +- `horizontal_field_offset_class` The offset for fields that have no label, or that use the label as part of their field function (such as checkbox) \ No newline at end of file