prosekit/vue/autocomplete
AutocompleteEmptyEmits
Emits for the AutocompleteEmpty component.
AutocompleteEmptyProps
Props for the AutocompleteEmpty component.
AutocompleteItemEmits
Emits for the AutocompleteItem component.
AutocompleteItemProps
Props for the AutocompleteItem component.
value
The value of the item, which will be matched against the query.
If not provided, the value is the item's text content.
Type:
string
Default:
""
AutocompleteListEmits
Emits for the AutocompleteList component.
AutocompleteListProps
Props for the AutocompleteList component.
AutocompletePopoverEmits
Emits for the AutocompletePopover component.
openChange
Fired when the open state changes.
Type:
(event: boolean) => void
queryChange
Fired when the query changes.
Type:
(event: string) => void
AutocompletePopoverProps
Props for the AutocompletePopover component.
boundary
Type:
Boundary
Default:
"The body element"
fitViewport
Type:
boolean
Default:
true
hoist
Type:
boolean
Default:
true
inline
Type:
boolean
Default:
true
offset
The distance between the popover and the hovered block.
Type:
OffsetOptions
Default:
4
overflowPadding
Type:
number
Default:
8
placement
The placement of the popover, relative to the text cursor.
Type:
Placement
Default:
"bottom-start"
regex
The regular expression to match the query text to autocomplete.
Type:
null | RegExp
Default:
null
AutocompleteEmpty
Type: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes, AutocompleteEmptyEmits>
AutocompleteItem
Type: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes, AutocompleteItemEmits>
AutocompleteList
Type: DefineSetupFnComponent<AutocompleteListProps & HTMLAttributes, AutocompleteListEmits>
AutocompletePopover
Type: DefineSetupFnComponent<AutocompletePopoverProps & HTMLAttributes, AutocompletePopoverEmits>