> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# EnrollMfaProps

Props for the EnrollMfa component.

## Extends

* `Omit`\<`HTMLAttributes`\<`HTMLDivElement`>, `"children"`>

## Properties

| Property                                      | Type                                                                                                                                     | Description                                                                                                                                                                                                                                                                                                                                     |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="children" /> `children?`               | \| `ReactNode` \| (`state`: [`EnrollMfaState`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/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>` |
| <a id="onenrollsuccess" /> `onEnrollSuccess?` | () => `void`                                                                                                                             | A function to call when the enrollment is successful.                                                                                                                                                                                                                                                                                           |
| <a id="resetonsuccess" /> `resetOnSuccess?`   | `boolean`                                                                                                                                | Whether to reset the enrollment state when the enrollment is successful. Defaults to `true`.                                                                                                                                                                                                                                                    |
