An interactive carousel that uses native CSS scroll-snap for smooth, performant scrolling. Features native touch/swipe gestures on mobile and drag-to-scroll on desktop for seamless navigation between slides.
The Swiper uses native CSS scroll-snap, providing smooth touch gestures on mobile, trackpad scrolling, and mouse drag-to-scroll on desktop. Simply click and drag to navigate between slides.
By default, the Swiper displays dot indicators below the carousel. The active dot is highlighted and slightly scaled for better visibility.
The controls prop supports three options: true (appear on hover), false (hidden), or "contained" (always visible inside the carousel). Buttons are automatically hidden when at the first or last slide.
Customize the aspect ratio of the carousel to fit your design needs. Supports standard aspect ratio values.
You can place custom content inside the slides as ReactNode, not just images.