https://github.com/co2-git/reacted-flex
React components to use with CSS3 Flexbox
https://github.com/co2-git/reacted-flex
Last synced: about 1 year ago
JSON representation
React components to use with CSS3 Flexbox
- Host: GitHub
- URL: https://github.com/co2-git/reacted-flex
- Owner: co2-git
- Created: 2016-01-17T09:46:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-16T01:51:09.000Z (over 10 years ago)
- Last Synced: 2025-02-01T16:23:15.825Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
reacted-flex
===
React components to use with CSS3 Flexbox
[More on Flex](https://scotch.io/tutorials/a-visual-guide-to-css3-flexbox-properties)
# Usage
```js
import React from 'react';
import Flex from 'reacted-flex';
class Layout extends React.Component {
render () {
return (
);
}
}
```
# Container
## display
### { display : flex }
```html
```
### { display : inline-flex }
```html
```
## flex-direction
### { flex-direction : column }
```html
```
### { flex-direction : reverse }
```html
```
### { flex-direction : column-reverse }
```html
```
## flex-wrap
### { flex-wrap : no-wrap }
```html
```
### { flex-wrap : wrap }
```html
```
### { flex-wrap : wrap-reverse }
```html
```
## justify-content
### { justify-content : flex-start }
```html
```
### { justify-content : flex-end }
```html
```
### { justify-content : center }
```html
```
### { justify-content : space-between }
```html
```
### { justify-content : space-around }
```html
```
## align-items
### { align-items : stretch }
```html
```
### { align-items : flex-start }
```html
```
### { align-items : flex-end }
```html
```
### { align-items : center }
```html
```
### { align-items : baseline }
```html
```
## align-content
### { align-content : stretch }
```html
```
### { align-content : flex-start }
```html
```
### { align-content : flex-end }
```html
```
### { align-content : center }
```html
```
### { align-content : space-between }
```html
```
### { align-content : space-around }
```html
```
## Item
### { order : }
```html
```
### { flex-grow : }
```html
```
### { flex-shrink : }
```html
```
### { flex-basis : }
```html
```
### { align-self : }
```html
```