0.0.15 • Published 7 months ago

vue-photo-album-fork v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Vue Photo Album

Vue Photo Album is a responsive photo gallery component for Vue 3. It supports rows, columns, and masonry layouts and customizable renderer components. Inspired by Igor Danchenko / react-photo-album.

NPM Version Bundle Size License MIT

Layouts

  • Rows

  • Columns

  • Masonry

Install

npm install vue-photo-album

Basic Setup

<script setup>
import { ref } from 'vue'
import { PhotoAlbum } from 'vue-photo-album'

const photos = ref([
  {
    "src": "https://source.unsplash.com/gKXKBY-C-Dk/1080x743",
    "key": "gKXKBY-C-Dk",
    "width": 1080,
    "height": 743,
    "srcSet": [
      {
        "src": "https://source.unsplash.com/gKXKBY-C-Dk/640x440",
        "width": 640,
        "height": 440
      },
      {
        "src": "https://source.unsplash.com/gKXKBY-C-Dk/256x176",
        "width": 256,
        "height": 176
      }
    ]
  },
  {
    "src": "https://source.unsplash.com/75715CVEJhI/1080x1513",
    "key": "75715CVEJhI",
    "width": 1080,
    "height": 1513
    "srcSet": [
      {
        "src": "https://source.unsplash.com/75715CVEJhI/640x896",
        "width": 640,
        "height": 896
      },
      {
        "src": "https://source.unsplash.com/75715CVEJhI/256x359",
        "width": 256,
        "height": 359
      }
    ]
  }
])
</script>

<template>
  <PhotoAlbum :photos="photos" layout="rows" />
</template>

Documentation

More details here https://tenthree.github.io/vue-photo-album

0.0.14

7 months ago

0.0.15

7 months ago

0.0.11

7 months ago

0.0.12

7 months ago

0.0.13

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.3

7 months ago

0.0.8

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.1

7 months ago

0.0.0

7 months ago