botbar
Frameworks

Svelte

A component and an action.

npm install @botbar/svelte
<script>
  import { Botbar } from "@botbar/svelte";
  let token = $state("");
</script>

<Botbar sitekey="site_..." action="login" onverify={(t) => (token = t)} />

The botbar action works with any element, in Svelte 4 and 5:

<div use:botbar={{ sitekey: "site_...", callback: (t) => (token = t) }}></div>