{"hits":[{"kind":"Guide section","title":"Nested pages","tool":"GetBaletteGuideSection(heading: \"Nested pages\")","snippet":"## Nested pages  Selecting a command that has children opens a page listing them, with breadcrumbs and a back button. `Backspace` or `←` on an empty query and `Esc` go back; the qu..."},{"kind":"Guide section","title":"Finding nested commands from the root","context":"Nested pages","tool":"GetBaletteGuideSection(heading: \"Finding nested commands from the root\")","snippet":"### Finding nested commands from the root  Nested commands are found from the root page too (`options.SearchNestedCommands`, on by default), as in kbar: typing `dark` lists **Theme..."},{"kind":"Guide section","title":"Prompts","context":"Handlers and results","tool":"GetBaletteGuideSection(heading: \"Prompts\")","snippet":"### Prompts  ```csharp BaletteCmd.New(\"Rename project…\").Shortcut(\"F2\").Handler(_ => Task.FromResult(BaletteCommandResult.Prompt(     \"New project name\",     ctx =>     {         s..."},{"kind":"API property","title":"BaletteOptions.SearchNestedCommands","context":"BaletteOptions","tool":"GetBaletteApi(typeName: \"BaletteOptions\")","snippet":"Find nested commands from the root page too (default true), as kbar does: typing dark lists \"Theme › Dark\" without opening Theme first, and theme dark matches the ancestors' titles..."},{"kind":"API parameter","title":"Balette.SearchNestedCommands","context":"Balette","tool":"GetBaletteApi(typeName: \"Balette\")","snippet":"Override of BaletteOptions.SearchNestedCommands: find nested commands from the root page."},{"kind":"API property","title":"BaletteCommandContext.PromptValue","context":"BaletteCommandContext","tool":"GetBaletteApi(typeName: \"BaletteCommandContext\")","snippet":"Text entered in a prompt step, when the command was reached via PromptResult."},{"kind":"API method","title":"BaletteCommandResult.Prompt","context":"BaletteCommandResult","tool":"GetBaletteApi(typeName: \"BaletteCommandResult\")","snippet":"...for free text, then run onSubmit with BaletteCommandContext.PromptValue set. Ask the user for free text that validate accepts - it returns null for a valid value and the message to..."},{"kind":"API property","title":"BaletteStrings.PromptPlaceholder","context":"BaletteStrings","tool":"GetBaletteApi(typeName: \"BaletteStrings\")","snippet":"The search box placeholder of a prompt that set none of its own."},{"kind":"Markup hook","title":"data-balette=\"prompt\"","context":"Balette","tool":"GetBaletteThemeVariables()","snippet":"The <div> Balette renders with class bit-balette-prompt."},{"kind":"CSS class","title":".bit-balette-dialog .bit-balette-prompt","context":"bit-balette.css","tool":"GetBaletteSourceFile(path: \"Library/Styles/bit-balette.css\")","snippet":"padding: 28px 16px; text-align: center; color: var(--bit-balette-fg-muted)"},{"kind":"CSS class","title":".bit-balette-dialog .bit-balette-prompt-error","context":"bit-balette.css","tool":"GetBaletteSourceFile(path: \"Library/Styles/bit-balette.css\")","snippet":"margin: 0 0 8px; color: var(--bit-balette-danger); font-size: 13px"},{"kind":"CSS class","title":".bit-balette-dialog .bit-balette-prompt-hint","context":"bit-balette.css","tool":"GetBaletteSourceFile(path: \"Library/Styles/bit-balette.css\")","snippet":"margin: 0; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px"}],"hasMore":true}