# Angular Command Palette Component

CommandPalette is a command menu opened with Ctrl+K or ⌘K: a search input above a list of commands filtered with fuzzy matching, with groups, nested pages, recent commands, async search and full keyboard support, in a modal dialog or in place.

## Basic

CommandPalette opens a search input above a list of commands in a modal dialog. It listens to Ctrl+K , or ⌘K on a Mac, anywhere on the page: press it now, or use the button. Typing filters the commands with fuzzy matching, the arrow keys move the active command and enter runs its command callback. visible opens and closes it, and the focus goes back to where it was when it closes.

```typescript
import { Component, signal } from '@angular/core';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { CommandPaletteItem, CommandPaletteModule } from '@exhaustive-ui/core/commandpalette';
import { bars, file, folderOpen, save, search as searchIcon, shareAlt, signOut } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card flex flex-col items-center gap-4">
            <p-button label="Search commands" [icon]="searchIcon" severity="secondary" (onClick)="visible.set(true)" />
            <p class="m-0 text-muted-color">Last command: {{ last() }}</p>
            <p-command-palette [items]="items" [(visible)]="visible" />
        </div>
    `,
    standalone: true,
    imports: [CommandPaletteModule, ButtonModule]
})
export class CommandpaletteBasicDemo {
    searchIcon = searchIcon;

    visible = signal(false);

    last = signal('none');

    items: CommandPaletteItem[] = [
        { label: 'New File', icon: file, command: () => this.last.set('New File') },
        { label: 'Open Folder', icon: folderOpen, command: () => this.last.set('Open Folder') },
        { label: 'Save All', icon: save, command: () => this.last.set('Save All') },
        { label: 'Toggle Sidebar', icon: bars, command: () => this.last.set('Toggle Sidebar') },
        { label: 'Share', icon: shareAlt, keywords: ['link', 'invite'], command: () => this.last.set('Share') },
        { label: 'Sign Out', icon: signOut, command: () => this.last.set('Sign Out') }
    ];
}
```

## Groups

An item with items is a group: its label is a heading above its commands. A command can have an icon , a description , keywords that find it without being shown, a shortcut hint rendered as keys ( mod reads ⌘ on Apple devices and Ctrl elsewhere) and a disabled state. Besides command , a routerLink or a url navigates. While searching, the best matches come first, inside and across groups. A shortcut of false leaves the keyboard shortcut to the first palette of this page.

```typescript
import { Component, signal } from '@angular/core';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { CommandPaletteItem, CommandPaletteModule } from '@exhaustive-ui/core/commandpalette';
import { calculator, calendar, cog, creditCard, envelope, externalLink, thLarge, user } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card flex justify-center">
            <p-button label="Open" [icon]="thLarge" severity="secondary" (onClick)="visible.set(true)" />
            <p-command-palette [items]="items" [(visible)]="visible" [shortcut]="false" />
        </div>
    `,
    standalone: true,
    imports: [CommandPaletteModule, ButtonModule]
})
export class CommandpaletteGroupsDemo {
    thLarge = thLarge;

    visible = signal(false);

    items: CommandPaletteItem[] = [
        {
            label: 'Suggestions',
            items: [
                { label: 'Calendar', icon: calendar, description: 'Your meetings of the week', shortcut: 'mod+shift+c' },
                { label: 'Search Emails', icon: envelope, keywords: ['mail', 'inbox'], shortcut: 'mod+e' },
                { label: 'Calculator', icon: calculator, disabled: true }
            ]
        },
        {
            label: 'Settings',
            items: [
                { label: 'Profile', icon: user, shortcut: 'mod+p' },
                { label: 'Billing', icon: creditCard, keywords: ['invoice', 'payment'], shortcut: 'mod+b' },
                { label: 'Preferences', icon: cog, shortcut: 'mod+,' }
            ]
        },
        {
            label: 'Links',
            items: [{ label: 'ExhaustiveUI on GitHub', icon: externalLink, url: 'https://github.com/e-xiste/exhaustive-ui', target: '_blank' }]
        }
    ];
}
```

## Nested Pages

An item with children opens a page of other commands instead of running. The search starts again on the new page, with the placeholder of the item, and a breadcrumb leads back to the previous pages. backspace in the empty input goes back one page, and onPageChange follows the navigation. Pages can be nested at any depth.

```typescript
import { Component, signal } from '@angular/core';
import { ButtonModule } from '@exhaustive-ui/core/button';
import { CommandPaletteItem, CommandPaletteModule } from '@exhaustive-ui/core/commandpalette';
import { language as languageIcon, palette, refresh, sitemap } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card flex flex-col items-center gap-4">
            <p-button label="Open" [icon]="sitemap" severity="secondary" (onClick)="visible.set(true)" />
            <p class="m-0 text-muted-color">Theme: {{ theme() }}, language: {{ language() }}</p>
            <p-command-palette [items]="items" [(visible)]="visible" [shortcut]="false" />
        </div>
    `,
    standalone: true,
    imports: [CommandPaletteModule, ButtonModule]
})
export class CommandpalettePagesDemo {
    sitemap = sitemap;

    visible = signal(false);

    theme = signal('System');

    language = signal('English');

    items: CommandPaletteItem[] = [
        {
            label: 'Change Theme…',
            icon: palette,
            placeholder: 'Choose a theme',
            children: ['Light', 'Dark', 'System'].map((theme) => ({ label: theme, command: () => this.theme.set(theme) }))
        },
        {
            label: 'Change Language…',
            icon: languageIcon,
            placeholder: 'Choose a language',
            children: [
                {
                    label: 'European',
                    items: ['English', 'Français', 'Deutsch', 'Español', 'Italiano'].map((language) => ({ label: language, command: () => this.language.set(language) }))
                },
                {
                    label: 'Asian',
                    items: ['日本語', '한국어', '中文'].map((language) => ({ label: language, command: () => this.language.set(language) }))
                }
            ]
        },
        { label: 'Reset Preferences', icon: refresh, command: () => (this.theme.set('System'), this.language.set('English')) }
    ];
}
```

## Custom Filter

The built-in filter matches the characters of the query in order, ignoring case and accents, in the label and the keywords ; consecutive characters, word starts and exact matches rank higher, and the matched characters of the label are highlighted. A filter function replaces it: it receives an item and the query and returns false to hide the item, or a score, higher first. Here only the words that start with the query match, and a match on the label outranks one on a keyword. commandPaletteFuzzyMatch is exported to build on the built-in matching.

```typescript
import { Component } from '@angular/core';
import { CommandPaletteFilter, CommandPaletteItem, CommandPaletteModule } from '@exhaustive-ui/core/commandpalette';
import { download, filePlus, home, shoppingCart, users } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card">
            <p-command-palette inline [items]="items" [filter]="filter" [shortcut]="false" scrollHeight="14rem" />
        </div>
    `,
    standalone: true,
    imports: [CommandPaletteModule]
})
export class CommandpaletteFilterDemo {
    items: CommandPaletteItem[] = [
        { label: 'Go to Dashboard', icon: home, keywords: ['home', 'overview'] },
        { label: 'Go to Orders', icon: shoppingCart, keywords: ['sales', 'purchases'] },
        { label: 'Go to Customers', icon: users, keywords: ['clients', 'accounts'] },
        { label: 'Create Invoice', icon: filePlus, keywords: ['bill', 'sales'] },
        { label: 'Export Report', icon: download, keywords: ['csv', 'excel'] }
    ];

    filter: CommandPaletteFilter = (item, query) => {
        const startsWord = (text: string) =>
            text
                .toLowerCase()
                .split(/\s+/)
                .some((word) => word.startsWith(query.trim().toLowerCase()));
        if (startsWord(item.label ?? '')) {
            return 2;
        }
        return (item.keywords ?? []).some(startsWord) ? 1 : false;
    };
}
```

## Async Search

For a server-side search, set shouldFilter to false and answer onSearch by setting items : the palette shows them as given. delay waits for a pause in typing before the event, and loading shows a spinner in the search row, and a loading message while there is no result yet. Here a fake server answers after 600 milliseconds, and the handler keeps only the latest answer.

```typescript
import { Component, signal } from '@angular/core';
import { CommandPaletteItem, CommandPaletteModule, CommandPaletteSearchEvent } from '@exhaustive-ui/core/commandpalette';
import { globe } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card">
            <p-command-palette inline [items]="items()" [shouldFilter]="false" [loading]="loading()" [delay]="250" (onSearch)="search($event)" [shortcut]="false" placeholder="Search a country" scrollHeight="14rem" />
        </div>
    `,
    standalone: true,
    imports: [CommandPaletteModule]
})
export class CommandpaletteAsyncDemo {
    items = signal<CommandPaletteItem[]>([]);

    loading = signal(false);

    private countries = ['Argentina', 'Australia', 'Austria', 'Belgium', 'Brazil', 'Canada', 'Chile', 'Denmark', 'Finland', 'France', 'Germany', 'Greece', 'India', 'Ireland', 'Italy', 'Japan', 'Mexico', 'Norway', 'Portugal', 'Spain', 'Sweden'];

    private request = 0;

    constructor() {
        this.search({ query: '', page: null });
    }

    search(event: CommandPaletteSearchEvent) {
        const request = ++this.request;
        this.loading.set(true);
        setTimeout(() => {
            // An older answer arriving after a newer request is ignored.
            if (request === this.request) {
                const query = event.query.trim().toLowerCase();
                this.items.set(
                    this.countries
                        .filter((country) => country.toLowerCase().includes(query))
                        .slice(0, 8)
                        .map((country) => ({ label: country, icon: globe }))
                );
                this.loading.set(false);
            }
        }, 600);
    }
}
```

## Inline and Recent

With inline , the palette is rendered in place, without the dialog, in a sidebar or a launcher page for instance. Its shortcut gives the focus to its search input, and escape clears the query, then leaves the page. recent adds a group of the last commands run at the top of the root page, up to recentLimit ; with recentStorageKey they are kept in the local storage between visits. Run a command to see it.

```typescript
import { Component, signal } from '@angular/core';
import { CommandPaletteItem, CommandPaletteModule } from '@exhaustive-ui/core/commandpalette';
import { code, desktop, megaphone, mobile, palette as paletteIcon, server } from '@exhaustive-ui/icons/round';

@Component({
    template: `
        <div class="card flex flex-col gap-4">
            <p-command-palette inline [items]="items" recent [recentLimit]="3" recentStorageKey="docs-commandpalette-recent" [shortcut]="false" scrollHeight="16rem" />
            <p class="m-0 text-muted-color">Last command: {{ last() }}</p>
        </div>
    `,
    standalone: true,
    imports: [CommandPaletteModule]
})
export class CommandpaletteInlineDemo {
    last = signal('none');

    items: CommandPaletteItem[] = [
        {
            label: 'Projects',
            items: [
                { id: 'website', label: 'Website redesign', icon: desktop, command: () => this.last.set('Website redesign') },
                { id: 'mobile', label: 'Mobile app', icon: mobile, command: () => this.last.set('Mobile app') },
                { id: 'api', label: 'Public API', icon: server, command: () => this.last.set('Public API') }
            ]
        },
        {
            label: 'Teams',
            items: [
                { id: 'design', label: 'Design', icon: paletteIcon, command: () => this.last.set('Design') },
                { id: 'engineering', label: 'Engineering', icon: code, command: () => this.last.set('Engineering') },
                { id: 'marketing', label: 'Marketing', icon: megaphone, command: () => this.last.set('Marketing') }
            ]
        }
    ];
}
```

## Template

The item template renders an option, with the item, whether it is active , the query and the segments of the label to highlight; group renders a heading with its label and its count . The header template goes above the search input, empty replaces the empty message and footer replaces the key hints, all with the query, the page and the number of results.

```typescript
import { Component } from '@angular/core';
import { AvatarModule } from '@exhaustive-ui/core/avatar';
import { CommandPaletteItem, CommandPaletteModule } from '@exhaustive-ui/core/commandpalette';
import { TagModule } from '@exhaustive-ui/core/tag';
import { userPlus } from '@exhaustive-ui/icons/round';
import { SvgIcon } from '@exhaustive-ui/core/icon';

@Component({
    template: `
        <div class="card">
            <p-command-palette inline [items]="items" [shortcut]="false" scrollHeight="16rem" placeholder="Find a person">
                <ng-template #header let-count="count">
                    <div class="px-4 pt-3 text-sm font-semibold">
                        People <span class="text-muted-color font-normal">· {{ count }}</span>
                    </div>
                </ng-template>
                <ng-template #group let-label="label" let-count="count">
                    <span class="flex-1">{{ label }}</span>
                    <span class="text-xs">{{ count }}</span>
                </ng-template>
                <ng-template #item let-person let-segments="segments">
                    <p-avatar [label]="person.data.initials" shape="circle" size="normal" aria-hidden="true" />
                    <span class="flex flex-col flex-1 min-w-0">
                        <span>
                            @for (segment of segments; track $index) {
                                @if (segment.match) {
                                    <strong>{{ segment.text }}</strong>
                                } @else {
                                    <span>{{ segment.text }}</span>
                                }
                            }
                        </span>
                        <span class="text-sm text-muted-color">{{ person.data.role }}</span>
                    </span>
                    @if (person.data.online) {
                        <p-tag value="Online" severity="success" />
                    }
                </ng-template>
                <ng-template #empty let-query="query">
                    <span class="flex flex-col items-center gap-2"><svg pIcon [icon]="userPlus" class="text-xl" aria-hidden="true"></svg>Nobody named “{{ query }}” yet.</span>
                </ng-template>
                <ng-template #footer let-count="count">
                    <span class="flex-1">{{ count }} people</span>
                    <span>Press <kbd class="p-commandpalette-kbd">↵</kbd> to open a profile</span>
                </ng-template>
            </p-command-palette>
        </div>
    `,
    standalone: true,
    imports: [SvgIcon, CommandPaletteModule, AvatarModule, TagModule]
})
export class CommandpaletteTemplateDemo {
    userPlus = userPlus;

    items: CommandPaletteItem[] = [
        {
            label: 'Design',
            items: [
                { label: 'Amy Elsner', data: { initials: 'AE', role: 'Product designer', online: true } },
                { label: 'Anna Fali', data: { initials: 'AF', role: 'UX researcher', online: false } }
            ]
        },
        {
            label: 'Engineering',
            items: [
                { label: 'Bernardo Dominic', data: { initials: 'BD', role: 'Frontend engineer', online: true } },
                { label: 'Ioni Bowcher', data: { initials: 'IB', role: 'Backend engineer', online: false } },
                { label: 'Xuxue Feng', data: { initials: 'XF', role: 'Engineering manager', online: true } }
            ]
        }
    ];
}
```

## Accessibility

Screen Reader The palette opens in a modal dialog labelled by the title label, with the focus trapped inside and given back to the element that had it when the palette closes. The search input follows the combobox pattern with a listbox popup, while the focus stays in the input: it has the combobox role, aria-autocomplete="list" , aria-expanded while there are results, aria-controls pointing to the listbox and aria-activedescendant to the active option, which has aria-selected . Disabled commands have aria-disabled , and a command that opens a page has aria-haspopup . Each group is a group element labelled by its heading. A polite live region announces the number of results as the query changes, the empty and loading messages, and the name of a page when it opens. The breadcrumb of the pages is a navigation landmark whose current page has aria-current="page" ; its buttons are reached with the mouse, while the keyboard goes back with backspace . The key hints of the footer are hidden from screen readers, which announce the keys of their own. Every text comes from the labels input: the title of the dialog, the inputLabel of the search input (or ariaLabel and ariaLabelledBy ), the listLabel of the listbox, the resultsMessage , emptyMessage , loadingMessage and pageMessage of the live region, and the hints. The empty message defaults to the emptySearchMessage of the translation configuration.

## Pass Through Options

| Name | Type | Description |
|------|------|-------------|
| host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
| root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
| pcDialog | DialogPassThrough | Used to pass attributes to the Dialog component of the modal mode. |
| panel | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the panel's DOM element, inside the dialog or in place in the inline mode. |
| breadcrumb | PassThroughOption<HTMLElement, I> | Used to pass attributes to the breadcrumb navigation of the nested pages. |
| breadcrumbList | PassThroughOption<HTMLOListElement, I> | Used to pass attributes to the list of the breadcrumb. |
| breadcrumbItem | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to an item of the breadcrumb. |
| breadcrumbButton | PassThroughOption<HTMLButtonElement, I> | Used to pass attributes to the button of a breadcrumb item. |
| search | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the search row. |
| searchIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the search icon. |
| input | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the search input. |
| loaderIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the loading icon of the search row. |
| listContainer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the list container's DOM element. |
| pcScroller | VirtualScrollerPassThrough | Used to pass attributes to the Scroller component of the virtual scroll. |
| list | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the listbox's DOM element. |
| group | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to a group's DOM element. |
| groupHeading | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the heading of a group. |
| groupItems | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the element that holds the options of a group. |
| option | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to an option's DOM element. |
| optionIcon | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the icon of an option. |
| optionContent | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the element that holds the label and the description of an option. |
| optionLabel | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the label of an option. |
| optionDescription | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the description of an option. |
| optionShortcut | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the shortcut hint of an option. |
| optionChevron | PassThroughOption<SVGElement, I> | Used to pass attributes to the arrow of an option that opens a page. |
| emptyMessage | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the empty message's DOM element. |
| loader | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the loading message's DOM element, shown while loading without results. |
| footer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the footer's DOM element. |

## Theming

### CSS Classes

| Class | Description |
|-------|-------------|
| p-commandpalette | Class name of the root element |
| p-commandpalette-dialog | Class name of the dialog of the modal mode |
| p-commandpalette-mask | Class name of the mask of the modal mode |
| p-commandpalette-panel | Class name of the panel element |
| p-commandpalette-breadcrumb | Class name of the breadcrumb of the nested pages |
| p-commandpalette-search | Class name of the search row |
| p-commandpalette-input | Class name of the search input |
| p-commandpalette-list-container | Class name of the list container element |
| p-commandpalette-list | Class name of the listbox element |
| p-commandpalette-group | Class name of a group element |
| p-commandpalette-group-heading | Class name of a group heading |
| p-commandpalette-option | Class name of an option element |
| p-commandpalette-highlight | Class name of the matched characters of a label |
| p-commandpalette-kbd | Class name of a key of a shortcut hint |
| p-commandpalette-empty-message | Class name of the empty message element |
| p-commandpalette-footer | Class name of the footer element |

### Design Tokens

| Token | CSS Variable | Description |
|-------|--------------|-------------|
| commandpalette.background | --p-commandpalette-background | Background of the inline palette |
| commandpalette.border.color | --p-commandpalette-border-color | Border color of the inline palette |
| commandpalette.border.radius | --p-commandpalette-border-radius | Border radius of the inline palette |
| commandpalette.color | --p-commandpalette-color | Text color of the inline palette |
| commandpalette.focus.border.color | --p-commandpalette-focus-border-color | Border color of the inline palette when its search input has the focus |
| commandpalette.transition.duration | --p-commandpalette-transition-duration | Transition duration of the options |
| commandpalette.dialog.width | --p-commandpalette-dialog-width | Width of the dialog |
| commandpalette.dialog.offset | --p-commandpalette-dialog-offset | Distance between the top of the viewport and the dialog |
| commandpalette.breadcrumb.padding | --p-commandpalette-breadcrumb-padding | Padding of the breadcrumb |
| commandpalette.breadcrumb.gap | --p-commandpalette-breadcrumb-gap | Gap between the items of the breadcrumb |
| commandpalette.breadcrumb.font.size | --p-commandpalette-breadcrumb-font-size | Font size of the breadcrumb |
| commandpalette.breadcrumb.color | --p-commandpalette-breadcrumb-color | Color of the breadcrumb items that lead back |
| commandpalette.breadcrumb.current.color | --p-commandpalette-breadcrumb-current-color | Color of the current page |
| commandpalette.breadcrumb.current.font.weight | --p-commandpalette-breadcrumb-current-font-weight | Font weight of the current page |
| commandpalette.breadcrumb.item.padding | --p-commandpalette-breadcrumb-item-padding | Padding of a breadcrumb item |
| commandpalette.breadcrumb.item.border.radius | --p-commandpalette-breadcrumb-item-border-radius | Border radius of a breadcrumb item |
| commandpalette.breadcrumb.item.hover.background | --p-commandpalette-breadcrumb-item-hover-background | Background of a breadcrumb item on hover |
| commandpalette.search.padding | --p-commandpalette-search-padding | Padding of the search row |
| commandpalette.search.gap | --p-commandpalette-search-gap | Gap between the icon and the input |
| commandpalette.search.border.color | --p-commandpalette-search-border-color | Border color under the search row |
| commandpalette.search.color | --p-commandpalette-search-color | Text color of the search input |
| commandpalette.search.font.size | --p-commandpalette-search-font-size | Font size of the search input |
| commandpalette.search.icon.color | --p-commandpalette-search-icon-color | Color of the search and loading icons |
| commandpalette.search.placeholder.color | --p-commandpalette-search-placeholder-color | Placeholder color of the search input |
| commandpalette.list.padding | --p-commandpalette-list-padding | Padding of the list |
| commandpalette.list.gap | --p-commandpalette-list-gap | Gap between the options |
| commandpalette.group.heading.padding | --p-commandpalette-group-heading-padding | Padding of a group heading |
| commandpalette.group.heading.color | --p-commandpalette-group-heading-color | Color of a group heading |
| commandpalette.group.heading.font.size | --p-commandpalette-group-heading-font-size | Font size of a group heading |
| commandpalette.group.heading.font.weight | --p-commandpalette-group-heading-font-weight | Font weight of a group heading |
| commandpalette.option.focus.background | --p-commandpalette-option-focus-background | Background of the active option |
| commandpalette.option.color | --p-commandpalette-option-color | Color of an option |
| commandpalette.option.focus.color | --p-commandpalette-option-focus-color | Color of the active option |
| commandpalette.option.padding | --p-commandpalette-option-padding | Padding of an option |
| commandpalette.option.border.radius | --p-commandpalette-option-border-radius | Border radius of an option |
| commandpalette.option.gap | --p-commandpalette-option-gap | Gap between the parts of an option |
| commandpalette.option.icon.color | --p-commandpalette-option-icon-color | Color of the icon and the arrow of an option |
| commandpalette.option.icon.focus.color | --p-commandpalette-option-icon-focus-color | Color of the icon of the active option |
| commandpalette.option.description.color | --p-commandpalette-option-description-color | Color of the description of an option |
| commandpalette.option.description.font.size | --p-commandpalette-option-description-font-size | Font size of the description of an option |
| commandpalette.highlight.color | --p-commandpalette-highlight-color | Color of the characters matched by the query |
| commandpalette.highlight.font.weight | --p-commandpalette-highlight-font-weight | Font weight of the characters matched by the query |
| commandpalette.kbd.background | --p-commandpalette-kbd-background | Background of a key of a shortcut hint |
| commandpalette.kbd.border.color | --p-commandpalette-kbd-border-color | Border color of a key |
| commandpalette.kbd.color | --p-commandpalette-kbd-color | Color of a key |
| commandpalette.kbd.border.radius | --p-commandpalette-kbd-border-radius | Border radius of a key |
| commandpalette.kbd.padding | --p-commandpalette-kbd-padding | Padding of a key |
| commandpalette.kbd.font.size | --p-commandpalette-kbd-font-size | Font size of a key |
| commandpalette.kbd.gap | --p-commandpalette-kbd-gap | Gap between the keys of a shortcut |
| commandpalette.empty.message.padding | --p-commandpalette-empty-message-padding | Padding of the empty and loading messages |
| commandpalette.empty.message.color | --p-commandpalette-empty-message-color | Color of the empty and loading messages |
| commandpalette.footer.padding | --p-commandpalette-footer-padding | Padding of the footer |
| commandpalette.footer.gap | --p-commandpalette-footer-gap | Gap between the key hints of the footer |
| commandpalette.footer.border.color | --p-commandpalette-footer-border-color | Border color above the footer |
| commandpalette.footer.color | --p-commandpalette-footer-color | Color of the footer |
| commandpalette.footer.font.size | --p-commandpalette-footer-font-size | Font size of the footer |

