2.4.4 • Published 5 months ago

@types/re-carousel v2.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Installation

npm install --save @types/re-carousel

Summary

This package contains type definitions for re-carousel (https://github.com/amio/re-carousel).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/re-carousel.

index.d.ts

// Type definitions for re-carousel 2.4
// Project: https://github.com/amio/re-carousel
// Definitions by: Josh Kramer <https://github.com/jkjustjoshing>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { ComponentType, CSSProperties } from 'react';

interface WidgetProps {
    index: number;
    total: number;
    prevHandler: () => void;
    nextHandler: () => void;
    axis?: 'x' | 'y';
    auto?: boolean;
    loop?: boolean;
    interval?: number;
}

interface CarouselProps {
    axis?: 'x' | 'y';
    auto?: boolean;
    loop?: boolean;
    interval?: number;
    duration?: number;
    widgets?: ReadonlyArray<ComponentType<WidgetProps>>;
    frames?: JSX.Element[];
    style?: CSSProperties;
    minMove?: number;
    onTransitionEnd?: (siblingFrames: SiblingFrames, duration: number) => void;
}

interface SiblingFrames {
    current: HTMLDivElement;
    prev: HTMLDivElement;
    next: HTMLDivElement;
}

declare const Carousel: ComponentType<CarouselProps>;
export = Carousel;

Additional Details

  • Last updated: Tue, 12 Oct 2021 17:01:23 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Josh Kramer.

2.4.4

5 months ago

2.4.1

8 months ago

2.4.3

6 months ago

2.4.2

7 months ago

2.4.0

3 years ago