# flexbox-vue

> A Vue Component to flexbox

Latest version **1.0.13** (published 2017-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install flexbox-vue
pnpm add flexbox-vue
yarn add flexbox-vue
bun add flexbox-vue
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2017-09-02 |
| First published | 2017-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | hexonZhang |
| Maintainers | hexon |

## Links

- npm: https://www.npmjs.com/package/flexbox-vue
- npm.io page: https://npm.io/package/flexbox-vue

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.4.2

## Recent versions

- 1.0.13 (latest) — 2017-09-02
- 1.0.11 — 2017-09-02
- 1.0.10 — 2017-09-02
- 1.0.9 — 2017-09-02
- 1.0.8 — 2017-09-02
- 1.0.7 — 2017-09-02
- 1.0.6 — 2017-09-02
- 1.0.5 — 2017-09-02
- 1.0.4 — 2017-09-02
- 1.0.3 — 2017-09-01
- 1.0.2 — 2017-09-01
- 1.0.1 — 2017-09-01
- 1.0.0 — 2017-09-01

## README

# flexbox-vue

> A Vue Component to flexbox

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# package
npm run prod
```

## Usage 
Install it via npm:
- `npm install -S flexbox-vue`

## Example 
1. Global import 
```
import Flexbox from 'flexbox-vue'
Vue.use(Flexbox);
```

2. Use it
```
<FlexboxContainer orient="vertical">
    <FlexboxItem grow="1">
      <p>demo1</p>
    </FlexboxItem>
    <FlexboxItem>
      <p>demo2</p>
    </FlexboxItem>
</FlexboxContainer>
```

## Props

**FlexboxContainer**
  - gutter
  Spacing between items, Unit is px
    - type: Number,
    - default: 8 
  - orient (flex-direction)
    - type: String,
    - default: 'horizontal'
    - options: 'horizontal' | 'vertical'
  - justify: 
    - type: String
    - default: 'flex-start'
    - options: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'
  - align:
    - type: String
    - default: flex-start
    - options: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
    
**FlexboxItem**
  - grow (flex-grow)
    - type: Number
    - default: 0
  - shrink (flex-shrink)
    - type: Number
    - default: 1
  - basis (flex-basis)
    - type: Number | String
    - default: 'auto'
    - options: <length> | 'auto'
  - order (order)
    - type: Number
    - default: 0

---
_Source: https://npm.io/package/flexbox-vue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
