UNPKG

@lifarl/react-scroll-snap-slider

Version:

A performant React Slider / Carousel Component with CSS Scroll Snapping, Intersection Observer and Accessibility.

8 lines (7 loc) 299 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>>;