Feedback Plugin
The Feedback plugin collects feedback from candidates about their experience.Installation
- npm
- pnpm
- CDN
Basic usage
- Package
- CDN
Host element
Add a container element where the widget will render. Thedata-key attribute must match the key parameter passed to render():
Configuration
Theme
| Option | Values | Description |
|---|---|---|
mode | light, dark | Color scheme |
corners | rounded, soft, sharp | Border radius style |
highlights | stroke, fill | Button/tag style |
accent | { hue: number, chroma: number } | Accent color. hue: 0–360 color angle, chroma: 0–2 intensity multiplier |
positive | { hue: number, chroma: number } | Positive feedback color |
negative | { hue: number, chroma: number } | Negative feedback color |
Other options
| Option | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Unique identifier matching the host element’s data-key |
size | sm, md, lg | Yes | Widget size |
terms | object | Yes | Override default UI text (pass {} to use defaults; see available keys below) |
Available term keys
| Key | Default |
|---|---|
a11y_label | How was your experience? |
positive_heading | Thanks! |
negative_heading | We’re sorry to hear that |
positive_text | Would you like to tell us more about your experience? |
negative_text | Would you like to tell us more about your experience? |
submit | Send feedback |
submitting | Sending feedback… |
skip | No, thanks |
submitted_heading | Thank you! |
submitted_text | Your feedback has been sent and will be used to improve our products. |