SDK

Launcher

Show, hide, and check the floating Feedback button.

When you enable the feedback widget in Project Settings → Feedback Widget, ChirpBack mounts a floating launcher button on your pages so users can open the form. If you want to drive opening from your own UI — your own "Feedback" link in the navbar, a button inside a settings panel — hide the default launcher and call Chirp.feedback.open() yourself.

Hide the launcher

Chirp.launcher.hide(): void
Chirp.launcher.hide();

Common case: your marketing site only wants the "What's new" / changelog drawer, not the feedback FAB:

Chirp.init({ clientId, consent: { state: "granted" } });
Chirp.launcher.hide();

Show the launcher

Chirp.launcher.show(): void
Chirp.launcher.show();

Useful for re-enabling it after a contextual hide (e.g. you hide it on /checkout and re-show it elsewhere).

Check visibility

Chirp.launcher.isVisible(): boolean
if (Chirp.launcher.isVisible()) {
  // toggle a UI affordance
}

Notes

  • hide / show only affect the floating button. They do not affect surfaces opened with Chirp.feedback.open(), survey.open(), announcement.open(), etc.
  • You can also disable the launcher project-wide in Project Settings → Feedback Widget if you never want it to mount.

Next steps

On this page