generated:catalog.entry.command-menu.title
generated:catalog.entry.command-menu.description
@xngui/components/command-menuimport { XCommandMenu } from '@xngui/components/command-menu';chrome:demo.section
chrome:demo.preview
import { Component } from '@angular/core';
import { XCommandMenu, XCommandMenuGroup, XCommandMenuItem } from '@xngui/components/command-menu';
import { XKbd } from '@xngui/components/kbd';
import { XIcon } from '@xngui/icons';
@Component({
selector: 'app-example',
imports: [XCommandMenu, XCommandMenuGroup, XCommandMenuItem, XKbd, XIcon],
templateUrl: './command-menu.component.html',
})
export class ExampleComponent {}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-command-menu
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
placeholderstring—Search field placeholder — falls back to the `command-menu.search` i18n key when unset.
ariaLabelstring—Accessible name for the dialog surface.
shortcutXMenuShortcut—Global keyboard shortcut that opens the palette (e.g. `['Ctrl', 'K']`).
sizeXSize—Visual size tier — falls back to XConfigService when unset.
densityXDensity—Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
showFooterHintsbooleantrueShow keyboard hint row in the dialog footer.