0.2.2 • Published 12 months ago
masonry-flow v0.2.2
Playground
Install
npm install masonry-flow
Usage
React
import MasonryFlow from "masonry-flow/react";
<MasonryFlow.Root width="200,300" gap={8}>
<MasonryFlow.Item style={{ background: "#f00" }} height={150}>
1
</MasonryFlow.Item>
<MasonryFlow.Item style={{ background: "#0f0" }} height={120}>
2
</MasonryFlow.Item>
<MasonryFlow.Item style={{ background: "#00f" }} height={140}>
3
</MasonryFlow.Item>
</MasonryFlow.Root>;
Vue
<script setup>
import { MasonryFlowRoot, MasonryFlowItem } from "masonry-flow/vue";
</script>
<template>
<masonry-flow-root :width="[200, 300]" :gap="8">
<masonry-flow-item style="background: #f00" :height="150">
1
</masonry-flow-item>
<masonry-flow-item style="background: #0f0" :height="120">
2
</masonry-flow-item>
<masonry-flow-item style="background: #00f" :height="140">
3
</masonry-flow-item>
</masonry-flow-root>
</template>
0.2.2
12 months ago
0.2.1
12 months ago
0.2.0
12 months ago
0.1.10
12 months ago
0.1.9
12 months ago
0.1.8
12 months ago
0.1.7
12 months ago
0.1.6
12 months ago
0.1.5
12 months ago
0.1.4
12 months ago
0.1.3
12 months ago
0.1.2
12 months ago
0.1.1
12 months ago
0.1.0
12 months ago
0.0.8
12 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.5
12 months ago
0.0.4
12 months ago
0.0.3
12 months ago
0.0.2
12 months ago
0.0.1
12 months ago