UNPKG

@lifarl/react-scroll-snap-slider

Version:

A React Slider / Carousel Component with Scroll Snapping and Intersection Observer. ***[Demo](https://lifarl.github.io/react-scroll-snap-slider/)***

8 lines (7 loc) 306 B
import React from 'react'; import { CarouselProps } from './Carousel.interface'; export interface CarouselRef { scrollToSlide: Function; sliderRef: React.Ref<HTMLDivElement>; } export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselRef>>;