@stella-loop/feedback-react
v0.2.29
Published
React bindings and accessible UI for Stella Feedback.
Readme
@stella-loop/feedback-react
React 18/19 bindings for @stella-loop/feedback. FeedbackProvider accepts a
prebuilt client or browser configuration, useFeedback exposes the channel,
and useFeedbackForm supplies a headless form binding. FeedbackButton and
FeedbackDialog provide an accessible prebuilt path with honest accepted,
queued, and failed states. This package implements feedback contract
ingest/v1.
<FeedbackProvider config={{ endpoint, key }}>
<FeedbackButton dialogProps={{ destination: "Example product feedback" }} />
</FeedbackProvider>FeedbackButton includes the dialog by default for the one-component path.
Set withDialog={false} when rendering a separately controlled
FeedbackDialog, or use renderTrigger to provide a fully custom trigger.
The components are SSR-safe and StrictMode-safe. Theme them with the same
--slf-bg, --slf-fg, --slf-muted, --slf-border, --slf-accent, and
--slf-accent-fg custom properties used by the vanilla widget.
