v3-bento
v0.0.2-alpha.6.19
Published
<p align='center'> <img src='https://cdn.jsdelivr.net/gh/pinky-pig/pic-bed/imagesv3-bento.gif' alt='v3-bento' width='600'/> </p>
Downloads
58
Maintainers
Readme
V3-Bento
A simple bento layout component for Vue3.
Document: https://v3bento.mmeme.me/
🌸 Get Started
pnpm install v3-bento
🍄 Usage
<Bento
:bentoCells="bentoCells"
class="!h-[610px] overflow-y-auto overflow-x-hidden p-[10px] box-content"
:size="140"
:disabled="false"
:gap="10"
:maximum-cells="4"
@drag-end="(e: any) => console.log(e)"
@drag-start="(e: any) => console.log(e)"
>
<BentoItem
v-for="item in bentoCells"
:key="item.id"
:id="item.id"
:x="item.x"
:y="item.y"
:width="item.width"
:height="item.height"
>
<Cell :url="'./' + item.id + '.svg'" :bg="'#fff'" />
</BentoItem>
</Bento>