@bryce-loskie/mz

A zoom image component for vue3 using medium-zoom
7,338 1
Install
npm install @bryce-loskie/mz
Latest Version:0.2.1
Vue:3
License:MIT
Last Updated:Aug 28, 2023
Links: GitHub  ·  npm
Maintainer: guygubaby

MZ

NPM version

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

MIT License © 2022 guygubaby

Related Packages

vue-img-viewr

vue图片查看组件(vue image viewer component),with vue@3.x

3,419 6
awesome-image-viewer

React, Angular, Vue, and Typescript compatible image viewer

77,227 18
@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