UNPKG

@chakra-ui/hooks

Version:

React hooks for Chakra components

8 lines (7 loc) 261 B
/** * React hook that provides a declarative `setTimeout` * * @param callback the callback to run after specified delay * @param delay the delay (in ms) */ export declare function useTimeout(callback: (...args: any[]) => void, delay: number | null): void;