Skip to main content

Unlock

UI component that unlocks the page

Usage

<UnLock
isWrongPassword
value={"password"}
onChange={(value: string) => {}}
onUnlock={() => {}}
/>

API

PropertyDescriptionTypeDefaultVersion
classNameCustomized class namestring-
isWrongPasswordIs the password entered wrongbooleanfalse
keyboardIs Portkey numeric keyboard used. Only takes effect on mobile devicesboolean-V1.5.3+
uiTypeIs UI displayed as Modal or as a page component'Modal' | 'Full'Modal
openControls if it's displayed or hidden when uiType is Modalboolean-
valueInput field contentstring-
onCancelCallback of cancelling() => void;-
onChangeCallback when the input field content changes(value:string) =>void-
onUnlockCallback when onUnlock is clicked(pin: string) => void;-V1.5.3+