Bit.Balette 11.0.0-pre-10

This is a prerelease version of Bit.Balette.
dotnet add package Bit.Balette --version 11.0.0-pre-10
                    
NuGet\Install-Package Bit.Balette -Version 11.0.0-pre-10
                    
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="11.0.0-pre-10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bit.Balette" Version="11.0.0-pre-10" />
                    
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 11.0.0-pre-10
                    
#r "nuget: Bit.Balette, 11.0.0-pre-10"
                    
#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@11.0.0-pre-10
                    
#: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=11.0.0-pre-10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bit.Balette&version=11.0.0-pre-10&prerelease
                    
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.
  • Multi-term queries with 'exact, ^prefix, suffix$ and !negate operators; 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 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.
  • 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 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. 
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-10 38 10/18/2026