center-aligning-jumbotron

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i center-aligning-jumbotron

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • chcokr