<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`SecretComponent`](SecretComponent) › [`onChange`](SecretComponent/onChange) ## SecretComponent.onChange() method 1.11.4 **Signature:** ```typescript onChange(cb: (value: string) => unknown): this; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>cb</code> | <code>(value: string) =&gt; unknown</code> | | **Returns:** `this`