UNPKG

@cursorify/react

Version:

Customizable cursor component for any style 🕹️

15 lines (14 loc) 664 B
import React, { PropsWithChildren } from 'react'; import { CursorifyReducerActionType, CursorifyStateType } from '../../types'; type Props = PropsWithChildren<{ cursor?: CursorifyStateType['cursor']; delay?: CursorifyStateType['delay']; opacity?: CursorifyStateType['opacity']; defaultCursorVisible?: CursorifyStateType['defaultCursorVisible']; breakpoint?: CursorifyStateType['breakpoint']; enabled?: boolean; }>; export declare const CursorifyProvider: React.FC<Props>; export declare function useCursorifyState(): CursorifyStateType; export declare function useCursorifyDispatch(): React.Dispatch<CursorifyReducerActionType>; export {};