Utilities
Utility functions for interacting with host nodes imperatively.
import { blur, clear, focus, getLayoutRect } from 'react-gui';
blur(node);
API #
blur (HTMLElement) => void
Blur the element.
clear (HTMLInputElement) => void
Clear the content of the text input.
focus (HTMLElement) => void
Focus the element.
getActiveModality () => void
…
getModality () => void
…
getLayoutRect (HTMLElement) => { x: number, y: number, width: number, height: number }
…