The Clearfix component is used in conjunction with LayoutGrid
, Row
and Col
components for page layout using the React Bootstrap grid system. It will clear both left and right floats.
NOTE: The gray background and border colors used in the examples are for demonstration purposes only.
Below, the grid columns won’t clear correctly in a small viewport.
Introduce Clearfix
. Set to visible for the viewports with an issue so that columns clear correctly.
Property | Type | Default | Description |
---|---|---|---|
visibleLgBlock | Boolean | false | Apply clearfix on large viewports. |
visibleMdBlock | Boolean | false | Apply clearfix on medium viewports. |
visibleSmBlock | Boolean | false | Apply clearfix on small viewports. |
visibleXsBlock | Boolean | false | Apply clearfix on extra small viewports. |