Bit.Balette 10.7.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Bit.Balette --version 10.7.0
                    
NuGet\Install-Package Bit.Balette -Version 10.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bit.Balette" Version="10.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bit.Balette" Version="10.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Bit.Balette" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bit.Balette --version 10.7.0
                    
#r "nuget: Bit.Balette, 10.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bit.Balette@10.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bit.Balette&version=10.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Bit.Balette&version=10.7.0
                    
Install as a Cake Tool

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; diacritics, Arabic and Persian letter variants and digits normalized; a second chance for typos.
  • Multi-term queries with 'exact, ^prefix, suffix$, !negate and "quoted phrase" operators; weighted fields; priority and frecency ranking.
  • Nested pages - static, lazily loaded (cancellable, with a retry), declarative or returned by a handler - with breadcrumbs, and nested commands found from the root.
  • Prefix modes (>, #, @, ?) and debounced, cancellable async sources.
  • Prompts, multi-select, confirmation of destructive commands, toasts and a Tab action panel.
  • Recents and pins persisted to localStorage or any store you plug in.
  • Global shortcuts and sequences such as G I, matched in the browser, with platform-aware hints; non-Latin keyboard layouts, held keys and input methods handled; conflicts reported.
  • A native modal <dialog> with the WAI-ARIA combobox and grouped listbox patterns, live announcements, forced colours and right-to-left layouts, audited with axe-core.
  • Failures logged through ILogger and reported in the palette without exposing exception text; unsafe link schemes refused.
  • 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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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-23 52 11/19/2026
11.0.0-pre-22 45 11/18/2026
11.0.0-pre-21 63 11/17/2026
11.0.0-pre-20 97 11/15/2026
11.0.0-pre-19 90 11/13/2026
11.0.0-pre-18 86 11/11/2026
11.0.0-pre-17 57 11/4/2026
11.0.0-pre-16 80 11/2/2026
11.0.0-pre-15 71 10/27/2026
11.0.0-pre-14 66 10/26/2026
11.0.0-pre-13 65 10/26/2026
11.0.0-pre-12 67 10/26/2026
11.0.0-pre-11 76 10/25/2026
11.0.0-pre-10 76 10/18/2026
10.7.0 111 10/25/2026
10.7.0-pre-04 99 10/25/2026
10.7.0-pre-03 98 10/22/2026
10.7.0-pre-02 99 10/22/2026