UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

14 lines (13 loc) 593 B
import { Ranger, type RangerOptions } from "@tanstack/ranger"; import { type Accessor } from "solid-js"; export * from "@tanstack/ranger"; export declare function useRanger<TTrackElement>(rangerRef: Accessor<TTrackElement | null>, options: Accessor<Omit<RangerOptions<TTrackElement>, "getRangerElement">>): { instance: Ranger<TTrackElement>; handles: import("@cn-ui/reactive").ComputedAtom<{ value: number; isActive: boolean; onKeyDownHandler: (e: any) => void; onMouseDownHandler: (e: any) => void; onTouchStart: (e: any) => void; }[]>; };