UNPKG

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

Version:

# a2-react-keystroke-package

17 lines (16 loc) 852 B
import React from 'react'; import type { TargetPlatform } from '../interfaces'; interface Props extends React.InputHTMLAttributes<HTMLInputElement> { ref?: React.Ref<HTMLInputElement>; target?: TargetPlatform; 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 {TargetPlatform} [target] - Optional target platform ('ios', 'android', 'desktop'). If not provided, it will be auto-detected. * @param {Function} [handleEndSessionOnEnter] - Optional function to handle ending the session on Enter key press (only for desktop). */ export declare const A2Textbox: ({ ref, target, handleEndSessionOnEnter, ...rest }: Props) => React.JSX.Element; export {};