Extends
Omit<HTMLAttributes<HTMLDivElement>,"children">
Properties
| Property | Type | Description |
|---|---|---|
children? | | ReactNode | (state: EnrollMfaState) => ReactNode | The children of the component. Leave empty to use the default enrollment UI. If a function is provided, it will be called with the current state of the enrollment flow. The function should return a ReactNode. Example <EnrollMfa> {(state) => ( <> <EnrollMfaTitle /> <EnrollMfaDescription /> <EnrollMfaFlow /> </> )} </EnrollMfa> |
onEnrollSuccess? | () => void | A function to call when the enrollment is successful. |
resetOnSuccess? | boolean | Whether to reset the enrollment state when the enrollment is successful. Defaults to true. |