Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zyyv/vue-flow-layout

Waterfull layout
https://github.com/zyyv/vue-flow-layout

Last synced: about 2 months ago
JSON representation

Waterfull layout

Awesome Lists containing this project

README

        

vue-flow-layout

🌊 The Vue waterfull layout component.



npm version


npm downloads

License

## Features

- 🌊 Waterfull layout
- 📦 Lightweight
- 🎨 Elegant transition
- 📱 Responsive

## Install

```bash
pnpm add vue-flow-layout
```

## Usage

```ts
import { createApp } from 'vue'
import VueFlowLayout from 'vue-flow-layout'
import App from './App.vue'

createApp(App).use(VueFlowLayout).mount('#app')
```

Use in your component:

```vue



{{ i }}

```

## Props

| Name | Type | Default | Description |
| ---------- | ------------------------ | ------- | ------------------------------------ |
| cols | number | 2 | The number of columns |
| gap | number \| [number, number] | 4 | The gap between items for X|Y |
| duration | number | 350ms | The transition duration |

## Credits

- [wc-flow-layout](https://github.com/huodoushigemi/wc-flow-layout)

## license

[MIT](./LICENSE)