its-just-ui
Version:
ITS Just UI - React 18 & React 19 UI component library. 36+ accessible, TypeScript-native components with Tailwind CSS. Zero-config Material UI alternative for SaaS dashboards and enterprise apps.
20 lines (18 loc) • 809 B
TypeScript
import { ScrollBehavior, EasingFunction } from './types';
export interface UseScrollSpyOptions {
offset?: number;
rootMargin?: string;
threshold?: number;
onChange?: (activeId: string | null) => void;
}
export declare const useScrollSpy: (targetIds: string[], options?: UseScrollSpyOptions) => string | null;
export interface UseSmoothScrollOptions {
behavior?: ScrollBehavior;
offset?: number;
duration?: number;
easing?: EasingFunction;
onScrollStart?: (targetId: string) => void;
onScrollEnd?: (targetId: string) => void;
}
export declare const useSmoothScroll: (options?: UseSmoothScrollOptions) => (targetId: string, customBehavior?: ScrollBehavior) => void;
export declare const useHashSync: (activeId: string | null, onChange?: (hash: string) => void) => void;