Container
The Bootstrap container component, implemented in Ruby.

bs_container(*args, &block)

Returns a bootstrap container containing content specified by a block. Also the container is customizable with the following options.
Optional options
  • :size - Expects a breakpoints :xs, :sm, :md, :lg, :xl, :xxl
HTML attributes This component accepts all the canonical HTML global attributes like id or class.

Examples

Example 1: Basic

1
bs_container size: :fluid do
2
# content here
3
end
Copied!
returns
1
<div class="container-fluid">
2
<!-- Content here -->
3
</div>
Copied!
Last modified 4mo ago