@ducor/hooks
Version:
A collection of useful React hooks for building modern web applications. Includes hooks for clipboard operations, window events, intervals, timeouts, and more.
9 lines (8 loc) • 313 B
TypeScript
import type { UseBooleanReturn } from "@ducor/types";
/**
* `useBoolean` is a custom hook used to manage boolean values using `on`, `off`, and `toggle` functions.
*
* @see Docs https://ui.ducor.net/hooks/use-boolen
*/
declare const useBoolean: (init?: boolean) => UseBooleanReturn;
export default useBoolean;