Docs
Gallery Card

Gallery Card

Displays a beautiful Gallery Card with swiper.

Loading...
Loading...
Loading...

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}
    />
  )
}