UNPKG

solid-awesome-hooks

Version:
12 lines (11 loc) 432 B
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 {};