![]() |
VOOZH | about |
dotnet add package Soenneker.Blazor.Chatwoot --version 4.0.733
NuGet\Install-Package Soenneker.Blazor.Chatwoot -Version 4.0.733
<PackageReference Include="Soenneker.Blazor.Chatwoot" Version="4.0.733" />
<PackageVersion Include="Soenneker.Blazor.Chatwoot" Version="4.0.733" />Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Chatwoot" />Project file
paket add Soenneker.Blazor.Chatwoot --version 4.0.733
#r "nuget: Soenneker.Blazor.Chatwoot, 4.0.733"
#:package Soenneker.Blazor.Chatwoot@4.0.733
#addin nuget:?package=Soenneker.Blazor.Chatwoot&version=4.0.733Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Chatwoot&version=4.0.733Install as a Cake Tool
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
OnOpen, OnMessage, and OnErrorIChatwoot abstractiondotnet add package Soenneker.Blazor.Chatwoot
Register the interop in DI:
public static async Task Main(string[] args)
{
builder.Services.AddChatwootInteropAsScoped();
}
<Chatwoot Configuration="_config"
OnOpen="HandleOpen"
OnClose="HandleClose"
OnReady="HandleReady"
OnMessage="HandleMessage"
OnError="HandleError" />
@code {
private readonly ChatwootConfiguration _config = new()
{
WebsiteToken = "replace-with-your-token",
BaseUrl = "https://app.chatwoot.com"
};
private Task HandleReady() => ConsoleLog("Chatwoot is ready!");
private Task HandleOpen() => ConsoleLog("Chat opened");
private Task HandleClose() => ConsoleLog("Chat closed");
private Task HandleMessage(ChatwootMessage message)
{
Console.WriteLine($"Message from Chatwoot: {message.Content}");
return Task.CompletedTask;
}
private Task HandleError(JsonElement error)
{
Console.WriteLine($"Chatwoot error: {error}");
return Task.CompletedTask;
}
private Task ConsoleLog(string msg)
{
Console.WriteLine(msg);
return Task.CompletedTask;
}
}
You must supply a ChatwootConfiguration object to the component:
var config = new ChatwootConfiguration
{
WebsiteToken = "your-token", // Required
BaseUrl = "https://app.chatwoot.com", // Optional, defaults to this
Locale = "en", // Optional, default is "en"
HideMessageBubble = false,
ShowUnreadMessagesDialog = false,
Position = "right", // "left" or "right"
UseBrowserLanguage = false,
Type = "standard", // or "expanded_bubble"
DarkMode = "auto", // "light" or "auto"
BaseDomain = null // Optional, for cross-subdomain tracking
};
This library provides a full interface via IChatwoot, including:
SetUser(...)SetLabel(...)Shutdown()Toggle()SetLocale(...)SetCustomAttributes(...)The following Chatwoot events are exposed as Blazor EventCallbacks:
| Chatwoot Event | .NET Callback |
|---|---|
chatwoot:ready |
OnReady |
chatwoot:open |
OnOpen |
chatwoot:close |
OnClose |
chatwoot:on-message |
OnMessage(ChatwootMessage) |
chatwoot:error |
OnError(JsonElement) |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.733 | 0 | 6/19/2026 |
| 4.0.731 | 0 | 6/18/2026 |
| 4.0.728 | 44 | 6/17/2026 |
| 4.0.727 | 52 | 6/17/2026 |
| 4.0.725 | 44 | 6/17/2026 |
| 4.0.724 | 52 | 6/16/2026 |
| 4.0.722 | 61 | 6/13/2026 |
| 4.0.721 | 68 | 6/13/2026 |
| 4.0.720 | 119 | 6/11/2026 |
| 4.0.719 | 94 | 6/10/2026 |
| 4.0.718 | 93 | 6/10/2026 |
| 4.0.717 | 96 | 6/10/2026 |
| 4.0.716 | 91 | 6/10/2026 |
| 4.0.714 | 92 | 6/9/2026 |
| 4.0.712 | 94 | 6/9/2026 |
| 4.0.710 | 101 | 6/9/2026 |
| 4.0.709 | 110 | 6/7/2026 |
| 4.0.707 | 96 | 6/6/2026 |
| 4.0.705 | 98 | 6/6/2026 |
| 4.0.703 | 88 | 6/6/2026 |
Update dependency Soenneker.Lepton.Suite to 4.0.25 (#1725)