UNPKG

onairos

Version:

The Onairos Library is a collection of functions that enable Applications to connect and communicate data with Onairos Identities via User Authorization. Integration for developers is seamless, simple and effective for all applications. LLM SDK capabiliti

41 lines (37 loc) 1.46 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Simple Onairos Button Test</title> <script src="https://unpkg.com/react@18/umd/react.development.js"></script> <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script> <script src="https://cdn.tailwindcss.com"></script> </head> <body> <div id="root" class="p-8"> <h1 class="text-2xl font-bold mb-4">Simple Onairos Button Test</h1> <div id="button-container"></div> </div> <script src="./dist/main.bundle.js"></script> <script> // Test the Onairos button const { OnairosButton } = window.Onairos; function handleComplete(result) { console.log('Onboarding completed:', result); alert('Onboarding completed! Check console for details.'); } // Create the button element const buttonElement = React.createElement(OnairosButton, { requestData: ['email', 'profile', 'social'], webpageName: 'Test App', onComplete: handleComplete, buttonType: 'pill', visualType: 'full', textColor: 'black' }); // Render the button ReactDOM.render(buttonElement, document.getElementById('button-container')); </script> </body> </html>