0.2.2 • Published 2 years ago
masonry-flow v0.2.2
Playground
Install
npm install masonry-flowUsage
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
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago