0.0.3 • Published 9 years ago

center-aligning-jumbotron v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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 style property
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.