UNPKG

@chakra-ui/hooks

Version:

React hooks for Chakra components

8 lines (7 loc) 257 B
/** * React Hook that provides a declarative `setInterval` * * @param callback the callback to execute at interval * @param delay the `setInterval` delay (in ms) */ export declare function useInterval(callback: () => void, delay: number | null): void;