An open API service indexing awesome lists of open source software.

https://github.com/co2-git/reactors-flex

Flex helpers for reactors
https://github.com/co2-git/reactors-flex

Last synced: about 1 year ago
JSON representation

Flex helpers for reactors

Awesome Lists containing this project

README

          

reactors-flex
===

# Install

```bash
npm install --save reactors-flex
// OR
yarn add reactors-flex
```

# Usage

```jsx
import * as Flex from 'reactors-flex';
import {Text} from 'reactors'

I am in a column
I am in a column too

I am in a row
I am in a row too

```

# Components

```jsx
import {Column, Row, Stack} from 'reactors-flex';
// Column and Stack are aliases to each other
```

# Props

All props are optional.

- `flex: number | string`
- `flexAround: true`
- `flexBetween: true`
- `flexCenter: true`
- `flexCenterHorizontal: true` alias `flexCenterY`
- `flexCenterVertical: true` alias `flexCenterX`
- `flexDown: true`
- `flexGrow: true | number`
- `flexReverse: true`
- `flexRight: true`
- `flexStretch: true`
- `flexUp: true`
- `flexWrap: true | false | 'around' | 'between' | 'center' | 'down' | 'stretch' | 'up'`