UNPKG

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

Version:

# a2-react-keystroke-package

14 lines (13 loc) 622 B
import React from 'react'; interface Props extends React.InputHTMLAttributes<HTMLInputElement> { ref?: React.Ref<HTMLInputElement>; handleEndSessionOnEnter?: Function; } /** * Component that renders a text input field and generates an A2CapturePayload data. * * @param {React.Ref<HTMLInputElement>} [ref] - Optional ref for the input element. * @param {Function} [handleEndSessionOnEnter] - Optional function to handle ending the session on Enter key press. */ export declare const A2DesktopTextInput: ({ ref, onChange, handleEndSessionOnEnter, ...rest }: Props) => React.JSX.Element; export {};