I have followed the instructions from link Build a Pluggable Web Widget: Part 1 | Mendix Documentation for onChange event and it is working fine.
export interface TextInputProps { value: string; className?: string; style?: CSSProperties; tabIndex?: number; onChange?: (value: string) => void; } export function TextInput({ value, onChange, tabIndex, style, className }: TextInputProps): ReactElement { return ( <input type="text" value={value} onChange={event => { onChange?.(event.target.value); }} className={"form-control " + className} style={style} tabIndex={tabIndex} /> ); }
please help me from onClick event too