Command
Overlayatlas-commandExamples
Command palette
Opens with Ctrl+K / ⌘K or through [(open)] ; type to filter, Enter to run.
or press Ctrl+K · last: —
Custom shortcut and texts
shortcut="j" opens this palette with Ctrl+J / ⌘J instead of K. placeholder , emptyText and ariaLabel replace the configured texts; items can show a description and a shortcut hint.
Last: —
API
Generated from the library source, so it always matches the code.
AtlasCommandComponent atlas-command
| Input | Type | Default | Description |
|---|---|---|---|
| items required | CommandItem[] | — | group is listed under that group. |
| groups | CommandGroup[] | [] | group matches a key are listed under it. |
| open two-way | boolean | false | |
| placeholder | string | undefined | undefined | command.placeholder . |
| emptyText | string | undefined | undefined | command.emptyText . |
| ariaLabel | string | undefined | undefined | command.label . |
| shortcut | string | 'k' | k . |
| Output | Payload | Description |
|---|---|---|
| select | CommandSelectEvent | |
| closed | void |
Types
CommandGroup
| Property | Type | Description |
|---|---|---|
| key | string | |
| label | string |
CommandItem
| Property | Type | Description |
|---|---|---|
| id | string | |
| label | string | |
| description? | string | |
| icon? | string | |
| shortcut? | string | |
| group? | string | |
| disabled? | boolean | |
| data? | unknown |
CommandSelectEvent
| Property | Type | Description |
|---|---|---|
| item | CommandItem |