Presenting Sillybits Pro - Beautifully crafted templates to create stunning landing pages in no time.
Docs
Image Slider

Image Slider

PreviousNext

A responsive image slider with smooth transitions, keyboard control, and clickable thumbnails.

Installation

Examples

Loading Text

Usage

import { ImageSlider } from "@/components/sillybitsui/image-slider";
const images = [
  "https://images.pexels.com/photos/2174656/pexels-photo-2174656.jpeg",
  "https://images.pexels.com/photos/38238/maldives-ile-beach-sun-38238.jpeg",
  "https://images.pexels.com/photos/2662086/pexels-photo-2662086.jpeg",
  "https://images.pexels.com/photos/2104044/pexels-photo-2104044.jpeg",
  "https://images.pexels.com/photos/1000445/pexels-photo-1000445.jpeg",
];
<ImageSlider images={imagesl} autoplay interval={4000} />;

Props

PropTypeDefaultDescription
imagesstring[][]Array of image URLs to display
autoPlaybooleanfalseEnables automatic slide transitions
intervalnumber3000Time (ms) between slides when autoPlay is true
classNamestring""Additional class names for customization
showThumbsbooleantrueWhether to display clickable image thumbnails
showArrowsbooleantrueWhether to display previous/next navigation arrows
keyboardbooleantrueEnables keyboard navigation (←, →, Home, End)