Command Palette Input
@astryxdesign/core v0.7.1 · CommandPaletteInput
Props
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | Search… | Grey placeholder in the field. |
label | string | Localized "Search commands" | Accessible name of the field. Defaults to a localized "Search commands" (not the placeholder); pass it when the palette searches something else. |
hasAutoFocus | boolean | true | Focus the field when it mounts. A palette that renders inline skips this, so opening a docs preview does not steal focus. |
value | string | — | Search text. Bind with v-model:value. When omitted, the field reads and writes the search text of the surrounding CommandPalette. |
Events
update:value(value: string): the next search text. Fired only whilevalueis bound.valueChange(value: string): the same value under the original callback name, for code ported from React.
Slots
end: content after the field, such as a clear button or aKbdshortcut hint. The spinner sits in front of it.endContent: the same slot under the original name.endwins when both are passed.