Give your forms some structure—from inline to horizontal to custom grid implementations—with our form layout options.
We recommend sticking to margin-bottom utilities, and using a single direction throughout the form for consistency.
More complex forms can be built using the grid components. Use these for form layouts that require multiple columns, varied widths, and additional alignment options.
More complex layouts can also be created with the grid system.
Create horizontal forms with the grid by adding as=Row
to form groups and using Col
to specify the width of your labels and controls. Be sure to add the column
prop to your FormLabel
s as well so they’re vertically centered with their associated form controls.
At times, you maybe need to use margin or padding utilities to create that perfect alignment you need. For example, we’ve removed the padding-top
on our stacked radio inputs label to better align the text baseline.
Set column width in Row just like - <Row lg='auto'>
to create responsive horizontal layouts.
Place an icon inside add-on on either side of an input. You may also place one on right side of an input.