UNPKG

@mirawision/reactive-hooks

Version:

A comprehensive collection of 50+ React hooks for state management, UI interactions, device APIs, async operations, drag & drop, audio/speech, and more. Full TypeScript support with SSR safety.

13 lines (12 loc) 464 B
type InputValue = string | React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>; type SetInputValue = (input?: InputValue) => void; type UseInput = [string, SetInputValue]; /** * Hook that manages input field state * Handles both string values and React change events * * @param initialValue - Initial input value * @returns Tuple with current value and setter function */ declare function useInput(initialValue: string): UseInput; export { useInput };