Command
Fast, composable, unstyled command menu for Angular.
Default
Standard command menu with groups and items.
command-example-default.ts
Dialog
Command menu wrapped in a dialog, accessible via a keyboard shortcut.
Press Ctrl + J or ⌘ + J to open the command palette.
Last selected:
none command-example-dialog.ts
Combobox
Using the command menu as a search and selection tool inside a popover.
command-example-combobox.ts
Installation & Usage
Installation
Imports
Basic Skeleton
API Reference
Brain API
Functional logic based on the cmdk pattern.
| Directive | Selector | Inputs / Outputs |
|---|---|---|
| BrnCommand | brn-command, [brnCommand] |
|
| BrnCommandItem | [brnCommandItem] |
|
Helm API
Styling components for the command menu.
| Component / Directive | Selector | Description |
|---|---|---|
| HlmCommand | hlm-command | The main container component. |
| HlmCommandDialog | hlm-command-dialog | Dialog wrapper for command menu. Inputs: state, title, description. |
| HlmCommandInput | hlm-command-input | Search input field. |
| HlmCommandList | hlm-command-list | Scrollable container for items. |
| HlmCommandItem | [hlmCommandItem] | A command menu item button. |
| HlmCommandGroup | hlm-command-group | Container for grouping items. |
| HlmCommandEmpty | [hlmCommandEmpty] | Displayed when no results are found. Use with *hlmCommandEmptyState. |