solid-awesome-hooks
Version:
A collection of awesome hooks for solid-js
12 lines (11 loc) • 432 B
TypeScript
import { type Accessor } from "solid-js";
interface Params extends ScrollOptions, ScrollToOptions {
scrollTrigger: Accessor<unknown>;
/**
* if set to true scrolling will be skipped on initial rendering
* @default true
*/
defer?: boolean;
}
export declare const useScrollTo: <T extends HTMLElement>({ scrollTrigger, defer, ...scrollOptions }: Params) => import("solid-js").Setter<T>;
export {};