swipefeed
    Preparing search index...

    Interface SwipeDeckRenderContext<T>

    interface SwipeDeckRenderContext<T> {
        index: number;
        isActive: boolean;
        item: T;
        props: HTMLAttributes<HTMLElement> & {
            "data-active": boolean;
            "data-index": number;
            ref?: (instance: HTMLElement | null) => void | (() => VoidOrUndefinedOnly);
        };
        shouldPreload: boolean;
    }

    Type Parameters

    • T
    Index

    Properties

    index: number
    isActive: boolean
    item: T
    props: HTMLAttributes<HTMLElement> & {
        "data-active": boolean;
        "data-index": number;
        ref?: (instance: HTMLElement | null) => void | (() => VoidOrUndefinedOnly);
    }
    shouldPreload: boolean