MazGallery
MazGallery is a standalone component used to display images in a container and has many options and actions
INFO
Before you have to import the global css files in your project, follow instructions in Getting Started
Basic usage
vue
<template>
<MazGallery
:images="images"
:height="320"
/>
</template>
<script lang="ts" setup>
import MazGallery, { type MazGalleryImage } from 'maz-ui/components/MazGallery'
const images: MazGalleryImage[] = [
'https://loremflickr.com/640/400',
{ src: 'https://loremflickr.com/640/600', thumbnail: 'https://loremflickr.com/100/100', alt: 'image description' },
{ src: 'https://loremflickr.com/640/700', alt: 'image description' },
'https://loremflickr.com/640/800',
'https://loremflickr.com/640/1000',
'https://loremflickr.com/800/800'
]
</script>
Set height by CSS
html
<MazGallery
:images="images"
class="maz-h-48 mob-l:maz-h-60 tab-s:maz-h-80"
no-height
/>
Types
ts
type MazGalleryImage =
| {
thumbnail?: string
src: string
alt?: string
}
| string