JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 482
  • Score
    100M100P100Q91765F
  • License MIT

Unopinionated, standard compilant flexbox components. You don't need to learn any propietary syntax. If you know how to use flexbox, you know how to use flexbox-react components.

Package Exports

  • flexbox-react

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flexbox-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

flexbox-react

NPM Version Downloads Dependency Status License

Unopinionated, standard compilant flexbox components. You don't need to learn any propietary syntax, classnames or API's. If you know how to use flexbox, you know how to use flexbox-react components.

Finally, you get to see your code and figure out how are nodes laid out without jumping between css files. Leave css files for the looks and actual aesthetics, not layout.

No hardcoded, bloated, unnecesary vendor prefixes, by http://caniuse.com. Just what your browser needs, based on your userAgent.

No need to import any new stylesheet or to add any styles to your existing stylesheets. It works out of the box, just by using the component.

Install

npm install --save flexbox-react

Usage

import { Flexbox, FlexItem } from "flexbox-react";

//...
<Flexbox alignItems="center" justifyContent="center" height="100vh" width="100vw">
  <FlexItem>
    <h1>Hi!</h1>
  </FlexItem>
</Flexbox>

Props

Take a look at Flexbox PropTypes and FlexItem PropTypes. No misteries. As said, you just need to know actual flexbox properties not any propietary syntax for them.

License

MIT © Ignacio Álvarez