Skip to main content

Interface.KeybanInputRef

Ref interface for KeybanInput component. Provides imperative methods to control the input.

Example

const inputRef = useRef<KeybanInputRef>(null);

const handleButtonClick = () => {
inputRef.current?.focus();
};

<KeybanInput ref={inputRef} name="email" />
<button onClick={handleButtonClick}>Focus Input</button>

Methods

focus()

focus(): void;

Programmatically focus the input. Useful for enhancing user experience and accessibility.

Returns

void