@adyen/kyc-components
Version:
`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar
12 lines (11 loc) • 577 B
TypeScript
import type { JSX } from 'preact';
/**
* This is useful for when you want to figure out what effect a keyboard event would have on
* some arbitrary existing text, as if it were happening on an `<input>`'s value.
*
* This is not a perfect simulation, real input handling is much more complex.
*
* @param keyDownEvent the actual event which occurred, probably on some other element
* @param value the existing value of the input
*/
export declare const simulateTextChangeFromKeyboardEvent: (keyDownEvent: JSX.TargetedKeyboardEvent<HTMLElement>, value: string) => string;