Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function VerifyMfaModal(props: VerifyMfaModalProps): Element;
props
VerifyMfaModalProps
Element
// Render the VerifyMfaModal component with a custom success handler function App() { const handleSuccess = (mfaCode: string) => { console.log(`Successfully verified`, mfaCode); }; return ( <CDPReactProvider config={config}> <VerifyMfaModal onSuccess={handleSuccess} /> </CDPReactProvider> ); }
// Render the VerifyMfaModal component with a custom trigger button function App() { return ( <CDPReactProvider config={config}> <VerifyMfaModal> <button type="button">Verify</button> </VerifyMfaModal> </CDPReactProvider> ); }
// Render the VerifyMfaModal component with a custom trigger button label function App() { return ( <CDPReactProvider config={config}> <VerifyMfaModal> <VerifyMfaModalTrigger variant="secondary" label="Verify" /> </VerifyMfaModal> </CDPReactProvider> ); }
// Render the VerifyMfaModal with controlled open state function App() { const [isOpen, setIsOpen] = useState(false); return ( <CDPReactProvider config={config}> <VerifyMfaModal open={isOpen} setIsOpen={setIsOpen}> <VerifyMfaModalTrigger /> <VerifyMfaModalContent /> </VerifyMfaModal> </CDPReactProvider> ); }
Was this page helpful?