@askdock/react
v1.1.0
Published
The Askdock widget for React — pill or bubble launcher, popup or side panel, fully themeable.
Downloads
260
Maintainers
Readme
@askdock/react
The Askdock widget for React: a pill or bubble launcher, a popup or side panel, fully themeable.
import { Askdock } from "@askdock/react";
<Askdock endpoint="/api/askdock" name="Acme AI" />Launcher and surface are independent — a pill at the bottom can open a side panel. Colour is a flat set of CSS custom properties written on the widget root, so the widget can't repaint your site and your reset can't flatten the widget.
icon, renderLauncher and renderLink hand back the pieces that carry a brand. On a single-page app you want renderLink: without it, following a link out of an answer is a full page load.
Every string on screen is yours, including the panel's own chrome — labels={{ starters: "Essayez de demander" }}. Nothing in the panel is written in English behind your back.
useAskdock() gives you the conversation without the UI.
Part of Askdock — a chat widget that only knows your site. Full documentation, configuration reference and recipes are in the main README.
MIT.
