UNPKG

@area2-ai/a2-react-keystroke-package

Version:

This package enables secure and efficient collection of user keystroke data through hooks, designed for both desktop and mobile platforms. The collected data is processed by **area2** servers to generate a neuroprofile, which reflects key cognitive, behav

12 lines (11 loc) 501 B
import React from 'react'; interface Props extends React.InputHTMLAttributes<HTMLInputElement> { handleSubmitOnEnter?: () => Promise<void>; } /** * Component that renders an input field * with keystroke tracking and optional submit on Enter key functionality. * @param {() => Promise<void>} [handleSubmitOnEnter] - Optional function to handle submit on Enter key press. */ export declare const A2TextInput: ({ handleSubmitOnEnter, ...rest }: Props) => React.JSX.Element; export {};