Support Widget
block / feedback / support
Floating support launcher with a config-driven topic picker and an optional message form.
- type
- block
- files
- 2
- registry deps
- button, popover, textarea
- npm deps
- lucide-react
installs
- lib/automindz/support-topics.ts
- components/automindz/support-widget.tsx
- Topics read from lib/automindz/support-topics.ts
- Optional message step, awaited, with failure in place
- Fixed launcher or inline embed from one prop
Topics live in lib/automindz/support-topics.ts — edit that per client, or pass a topics array. Give a topic an href to send the user somewhere, onSelect to hand off to your own flow (Intercom, a route), or onSubmit to collect a message in place. Defaults to a fixed bottom-right launcher; use placement="inline" to embed it in a help page.
Variations
one state per section
Topic picker
The launcher and the two enabled topics. Picking one calls onSelect and closes — hand off to your own flow, a route, or a chat tool.
Message step
Pass onSubmit and the chosen topic opens a compact form: awaited send, back arrow to the topics, then a terminal confirmation instead of a live form.
Send failed
A rejected submit keeps the message in the box and shows why at the foot of the panel. Nothing to retype, nothing dismissed for you.
Every topic, one gated
All four config entries enabled, with priority support blocked: the row stays, explains itself in place of its description, and cannot be clicked.
