Row
The Bootstrap row component, implemented in Ruby.

bs_row(*args, &block)

Returns a bootstrap row containing content specified by a block. Also the row is customizable with the following options.
Optional options
  • :vertical - For vertical alignment. Expects parameter: start, center, end
  • :horizontal - For horizontal alignment. Expects parameter: start, center, end, around, between, evenly
HTML attributes This component accepts all the canonical HTML global attributes like id or class.

Examples

Example 1: Basic

1
bs_row horizontal: :start, vertical: :center do
2
# content here
3
end
Copied!
returns
1
<div class="row justify-content-start align-items-center">
2
<!-- Content here -->
3
</div>
Copied!