@shko.online/lookupobjects-mock
Version:
Mocking Dataverse Lookup Objects to simplify writing soties for PCF components
27 lines (26 loc) • 974 B
TypeScript
interface SnapCarouselGoToOptions {
/**
* The scroll behavior of the navigation
* when prompted to navigate to another page.
*
* @default 'smooth'
*/
readonly behavior?: ScrollBehavior;
}
export interface SnapCarouselResult {
readonly pages: number[][];
readonly activePageIndex: number;
readonly snapPointIndexes: Set<number>;
readonly prev: (opts?: SnapCarouselGoToOptions) => void;
readonly next: (opts?: SnapCarouselGoToOptions) => void;
readonly goTo: (pageIndex: number, opts?: SnapCarouselGoToOptions) => void;
readonly refresh: () => void;
readonly scrollRef: (el: HTMLElement | null) => void;
}
export interface SnapCarouselOptions {
readonly axis?: 'x' | 'y';
readonly initialPages?: number[][];
}
export declare const useSnapCarousel: ({ axis, initialPages }?: SnapCarouselOptions) => SnapCarouselResult;
export {};
//# sourceMappingURL=use-snap-carousel.d.ts.map