react-multi-carousel-jsm
Version:
Production-ready, lightweight fully customizable React carousel component that rocks supports multiple items and SSR(Server-side rendering) with typescript.
18 lines (17 loc) • 1.05 kB
TypeScript
import * as React from "react";
import { StateCallBack } from "./types";
interface LeftArrowProps {
customLeftArrow?: React.ReactElement<any> | null;
getState: () => StateCallBack;
previous: () => void;
disabled?: boolean;
}
interface RightArrowProps {
customRightArrow?: React.ReactElement<any> | null;
getState: () => StateCallBack;
next: () => void;
disabled?: boolean;
}
declare const LeftArrow: ({ customLeftArrow, getState, previous, disabled }: LeftArrowProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
declare const RightArrow: ({ customRightArrow, getState, next, disabled }: RightArrowProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
export { LeftArrow, RightArrow };