prosekit/web/autocomplete
AutocompleteEmptyElement
AutocompleteItemElement
AutocompleteListElement
AutocompletePopoverElement
AutocompleteItemEvents
AutocompleteItemProps
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:
""
AutocompleteListEvents
AutocompleteListProps
AutocompletePopoverEvents
AutocompletePopoverProps
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:
undefined | OffsetOptions
Default:
4
onOpenChange
A callback that is called when the open state changes.
Type:
null | ((open: boolean) => void)
onQueryChange
A callback that is called when the query changes.
Type:
null | ((query: string) => void)
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
autocompleteListEvents
Type: EventDeclarations<ListboxEvents>
autocompleteListProps
Type: { editor: { default: null }; filter: PropDeclaration<null | ItemFilter> }