Docs
Gallery Card

Gallery Card

Displays a beautiful Gallery Card with swiper.

Nature 1

Nature 1

Beautiful landscape view

Nature 2

Nature 2

Mountain scenery

Nature 3

Nature 3

Ocean waves

Nature 4

Nature 4

Forest path

Nature 5

Nature 5

Desert sunset

Nature 1

Nature 1

Beautiful landscape view

Nature 2

Nature 2

Mountain scenery

Nature 3

Nature 3

Ocean waves

Nature 4

Nature 4

Forest path

Nature 5

Nature 5

Desert sunset

Thumbnail 1
Thumbnail 2
Thumbnail 3
Thumbnail 4
Thumbnail 5
Nature 1

Nature 1

Beautiful landscape view

Nature 2

Nature 2

Mountain scenery

Nature 3

Nature 3

Ocean waves

Nature 4

Nature 4

Forest path

Nature 5

Nature 5

Desert sunset

5s

Installation

Install the following dependencies:

npm install swiper

Copy and paste the cn util code into your project.

import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
 
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}
 

Copy and paste the Event Calendar code into your project.

API Reference

Props

PropTypeDescription
imagesImageData[]the dispaly images
autoplaybooleanIf or not autoplay the images
autoplayDelaynumberautoplay duration
showProgressnumberIf or not show the progress
showThumbnailsnumberIf or not show the thumbs
slidesPerViewThumbsnumberthe thumbs number

Usage

export default function Demo() {
  return (
    <PhotoGalleryWithThumbs
      images={images}
      autoplay={true}
      autoplayDelay={5000}
    />
  )
}