0.0.3 • Published 10 years ago
center-aligning-jumbotron v0.0.3
CenterAligningJumbotron
This is a react-bootstrap Jumbotron that center-aligns its children, both horizaontally and vertically.
- Vertical alignment is achieved using Flexbox
- Horizontal alignment is achieved using
text-align - This styling is achieved using the inline
styleproperty
import CenterAligningJumbotron from 'center-aligning-jumbotron';
<CenterAligningJumbotron>
<h1>Centered!</h1>
<p>Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay</p>
</CenterAligningJumbotron>fluid property
By default, there is a <div class="container"> inside the Jumbotron returned
by this component.
The optional fluid property (boolean) makes that a
<div class="container-fluid">.
Stilr mode
If you use stilr along with
stilr-classnames, you'll find
center-aligning-jumbotron/stilr quite helpful.
import CenterAligningJumbotron from 'center-aligning-jumbotron/stilr';Same thing, it just works better with stilr-classnames.