🚀 Revrag Widget Demo

The floating help widget should appear in the bottom-right corner!

No imports, no setup required - just include the script.

✨ What You're Seeing

This page demonstrates the simplest possible integration of the Revrag Widget:

📝 Integration Code

Here's the complete code needed to add this widget to any website:

<!-- Include React (required) -->
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>

<!-- Include Revrag Widget Script -->
<script
  src="../dist/revrag-widget.umd.js"
  data-api-key="demo-api-key-123"
  data-debug="true"
  data-position="bottom-right"
  data-primary-color="#667eea"
  data-size="medium">
</script>

🎯 Configuration Options

Configure the widget using data attributes on the script tag:

🔧 Alternative JavaScript API

You can also initialize the widget programmatically if needed:

<script>
// Configure before script loads
window.RevragWidget = {
  config: {
    apiKey: 'your-api-key',
    debug: true,
    position: 'bottom-right'
  }
};

// Or initialize after script loads
window.RevragWidget.init({
  apiKey: 'your-api-key',
  debug: true
});
</script>

💬 Try It Out!

Click the floating widget in the bottom-right corner to:

The widget is fully functional and ready to integrate into your website!