Bit.Balette
11.0.0-pre-10
dotnet add package Bit.Balette --version 11.0.0-pre-10
NuGet\Install-Package Bit.Balette -Version 11.0.0-pre-10
<PackageReference Include="Bit.Balette" Version="11.0.0-pre-10" />
<PackageVersion Include="Bit.Balette" Version="11.0.0-pre-10" />
<PackageReference Include="Bit.Balette" />
paket add Bit.Balette --version 11.0.0-pre-10
#r "nuget: Bit.Balette, 11.0.0-pre-10"
#:package Bit.Balette@11.0.0-pre-10
#addin nuget:?package=Bit.Balette&version=11.0.0-pre-10&prerelease
#tool nuget:?package=Bit.Balette&version=11.0.0-pre-10&prerelease
Bit.Balette
An accessible, keyboard-first command palette for Blazor: the Ctrl+K / ⌘K box that searches every page,
action and setting of an app and runs the one you pick. Matching, ranking, paging and history are written in C#;
JavaScript only opens the native <dialog>, moves focus and listens for keys - there is no JavaScript command-menu
library underneath.
Quick start
dotnet add package Bit.Balette
// Program.cs - in both projects of a Blazor Web App
builder.Services.AddBitBaletteServices();
<link rel="stylesheet" href="_content/Bit.Balette/bit-balette.css" />
@* _Imports.razor *@
@using Bit.Balette
@* MainLayout.razor - an interactively rendered layout *@
@inject IBaletteService Palette
<BaletteTrigger Label="Search…" />
@Body
<Balette />
@code {
protected override void OnInitialized() => Palette.Register(
BaletteCmd.Navigate("Home", "/").Group("Navigation").Shortcut("G H"),
BaletteCmd.Navigate("Settings", "/settings").Group("Navigation").Shortcut("G S").Keywords("preferences"),
BaletteCmd.New("Theme").Group("Preferences").Children(
BaletteCmd.Action("Light", () => SetTheme("light")),
BaletteCmd.Action("Dark", () => SetTheme("dark"))));
private void SetTheme(string theme) { /* ... */ }
}
Register returns an IDisposable - dispose it to remove page-scoped commands, or use
<BaletteCommands Commands="..." />. Commands can also be written as markup with <BaletteGroup> and
<BaletteItem> inside <Balette>.
Features
- An fzf-style fuzzy matcher with word-boundary, camelCase and consecutive-run bonuses, smart case and highlighting.
- Multi-term queries with
'exact,^prefix,suffix$and!negateoperators; weighted fields; priority and frecency ranking. - Nested pages - static, lazily loaded, declarative or returned by a handler - with breadcrumbs.
- Prefix modes (
>,#,@,?) and debounced, cancellable async sources. - Prompts, multi-select, confirmation of destructive commands, toasts and a
Tabaction panel. - Recents and pins persisted to
localStorageor any store you plug in. - Global shortcuts and sequences such as
G I, matched in the browser, with platform-aware hints. - A native modal
<dialog>with the WAI-ARIA combobox pattern and live announcements. - CSS-variable theming, light and dark, eight templates or a fully unstyled mode, localizable strings.
- Blazor WebAssembly, Server, Web App (including prerendering) and Hybrid on .NET 8, 9 and 10; trimming and AOT friendly.
For AI agents
The demo site hosts an MCP server at https://balette.bitplatform.dev/mcp (also served through
https://bitplatform.dev/mcp) that answers from the shipped library: its API, its guide and the demo's working
pages.
Documentation
The full guide - commands, declarative markup, handlers and results, nested pages, search and ranking, modes, async sources, history, the keyboard, theming, templates, localization, accessibility and hosting models - is in the Balette README. See it running at balette.bitplatform.dev.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.0 && < 11.0.0)
-
net11.0
- Microsoft.AspNetCore.Components.Web (>= 11.0.0-rc.1.26425.128 && < 12.0.0)
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.0 && < 9.0.0)
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.0 && < 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-pre-10 | 38 | 10/18/2026 |