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
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.
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-reactUsage
import { Flexbox, FlexItem } from "flexbox-react";
//...
<Flexbox alignItems="center" justifyContent="center">
<FlexItem>
<h1>Hi!</h1>
</FlexItem>
</Flexbox>Props
Take a look at Flexbox PropTypes and FlexItem PropTypes. No mysteries. As said, you just need to know actual flexbox properties not any propietary syntax for them.
License
MIT © Ignacio Álvarez