Package Exports
- react-flexview
- react-flexview/lib/flexView.css
- react-flexview/src/flexView.scss
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 (react-flexview) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
FlexView
A React component to abstract over flexbox
Install
npm i --save react-flexview
Hot to use
In your app.js
import 'react-flexview/lib/flexView.css' // FlexView is useless without its style
In your component
import React from 'react';
import FlexView from 'react-flexview';
export default class Component extends React.Component {
render() {
return (
<FlexView vAlignContent='center'>
I'm vertically aligned!
</FlexView>
);
}
}
Demo
Here's a live demo
Documentation
Refer to the Book of FlexView