Image Slider

A responsive, customizable image slider with support for swipes, autoplay, and thumbnails.

Preview

Slide 1
Slide 2
Slide 3
Slide 4

Autoplay

Slide 1
Slide 2
Slide 3
Slide 4

Minimal

Slide 1
Slide 2
Slide 3
Slide 4

Installation

Use the CLI to add this component to your project.

npx shadcn@latest add https://ui.nyxhora.com/r/image-slider.json

Props

PropTypeDefaultDescription
imagesstring[] | {src: string, alt: string}[]-Array of image URLs or objects
showControlsbooleantrueShow previous/next arrows
showThumbnailsbooleantrueShow thumbnail navigation
autoplaybooleanfalseEnable automatic sliding
autoplayIntervalnumber3000Interval in milliseconds