UNPKG

@netdata/netdata-ui

Version:

netdata UI kit

18 lines (13 loc) 342 B
import { FocusEvent } from "react" export interface UseTouchedStateProps { onBlur?: (e: FocusEvent) => void defaultState?: boolean } declare const useTouchedState: (props: UseTouchedStateProps) => [ boolean, (e: FocusEvent) => void, (state: boolean) => void ] export { useTouchedState } export default useTouchedState