Skip to content

CommandInput ​

Overview ​

The search input for Command, bound to the shared filter state.

Theme entry: CommandInput

Props ​

NameTypeRequiredDefaultDescription
iconOverrideObjectnullA partial icon registry ({ [componentName]: { [iconName]: { component, props } } }) merged with inherited and default icon entries; scopes icon overrides to this component and its descendants.
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
modelValuestringundefinedThe controlled filter value. Can be bound with v-model.
autoFocusbooleanundefinedWhen true, focuses the input on mount.
disabledbooleanundefinedWhen true, prevents user interaction.
asstring|objectundefinedThe HTML element or component to render as.
asChildbooleanundefinedWhether to render as a child element.

Source ​

client/lib/controls/command/CommandInput.vue