@rifeedback/rifeedback-wc
v0.1.4
Published
Visual feedback overlay as a Web Component — works with any framework
Maintainers
Readme
@rifeedback/rifeedback-wc
Visual feedback overlay as a Web Component — works with any framework.
Install
npm install @rifeedback/rifeedback-wcUsage
Via CDN (no bundler)
<script type="module" src="https://unpkg.com/@rifeedback/rifeedback-wc/dist/cdn.mjs"></script>
<ri-feedback project-key="your-project-key"></ri-feedback>Via npm (with bundler)
import '@rifeedback/rifeedback-wc'
// Then use the custom element in your HTML/template
// <ri-feedback project-key="your-key"></ri-feedback>Attributes
| Attribute | Type | Description |
|-----------|------|-------------|
| project-key | string | Your project key from the RiFeedback dashboard |
| api-base-url | string | API base URL (defaults to https://app.rifeedback.com/api, override for self-hosted) |
| position | 'bottom-right' \| 'bottom-left' | Position of the feedback button |
| default-visible | boolean | Show the overlay on mount |
| z-index | number | Custom z-index for the overlay |
React
If you're using React, use the rifeedback package instead — it provides a native React wrapper with proper event handling.
License
Business Source License 1.1 — Copyright (c) 2026 Ritech International AG
