@bryce-loskie/mz
MZ
A zoom image component for vue3 using medium-zoom
Get Started
pnpm i @bryce-loskie/mz
<script setup lang="ts">
import ZoomImage, { defineZoomOptions } from '@bryce-loskie/mz'
const imageSrcList = ['https://foo.com.png']
const options = defineZoomOptions({
background: '#fff',
margin: 24,
})
</script>
<template>
<div>
<h1 mb="4">
Zoom Image
</h1>
<ul class="flex gap-2 flex-wrap">
<li v-for="img in imageSrcList" :key="img">
<ZoomImage alt="foo" :src="img" :zoom-options="options" class="w-40 h-auto" />
</li>
</ul>
</div>
</template>
License
Related Packages
vue-silentbox
72,542
294
@cynber/vitepress-valence
Get even more out of VitePress with VitePress Valence, a comprehensive suite of...
2,392
4
medium-zoom
A JavaScript library for zooming images like Medium. Works with React and any we...
14,234,702
3,941
Version History
| Version | Released | License |
|---|---|---|
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.6 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |