prosekit/lit/autocomplete
AutocompleteEmpty
Extends
BaseElement
<this
> &AutocompleteEmptyProps
Constructors
new AutocompleteEmpty()
new AutocompleteEmpty():
AutocompleteEmpty
Returns
Inherited from
ElementBuilder<AutocompleteEmptyProps>(useAutocompleteEmpty, defaultAutocompleteEmptyProps).constructor
AutocompleteItem
Extends
BaseElement
<this
> &AutocompleteItemProps
Constructors
new AutocompleteItem()
new AutocompleteItem():
AutocompleteItem
Returns
Inherited from
ElementBuilder<AutocompleteItemProps>(useAutocompleteItem, defaultAutocompleteItemProps).constructor
Properties
onSelect
onSelect:
null
|VoidFunction
The function to call when the item is selected.
Default
null
Inherited from
ElementBuilder<AutocompleteItemProps>(useAutocompleteItem, defaultAutocompleteItemProps).onSelect
value
value:
string
The value of the item, which will be matched against the query.
If not provided, the value is the item's text content.
Default
""
Inherited from
ElementBuilder<AutocompleteItemProps>(useAutocompleteItem, defaultAutocompleteItemProps).value
AutocompleteList
Extends
BaseElement
<this
> &AutocompleteListProps
<this
>
Constructors
new AutocompleteList()
new AutocompleteList():
AutocompleteList
Returns
Inherited from
ElementBuilder<AutocompleteListProps>(useAutocompleteList, defaultAutocompleteListProps).constructor
Properties
editor
editor:
null
|Editor
<any
>
Inherited from
ElementBuilder<AutocompleteListProps>(useAutocompleteList, defaultAutocompleteListProps).editor
AutocompletePopover
Extends
BaseElement
<this
> &AutocompletePopoverProps
Constructors
new AutocompletePopover()
new AutocompletePopover():
AutocompletePopover
Returns
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).constructor
Properties
boundary
boundary:
Boundary
Default
"The body element"
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).boundary
editor
editor:
null
|Editor
<any
>
The ProseKit editor instance.
Default
null
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).editor
fitViewport
fitViewport:
boolean
Default
true
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).fitViewport
hoist
hoist:
boolean
Default
true
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).hoist
inline
inline:
boolean
Default
true
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).inline
offset
offset:
null
|OffsetOptions
The distance between the popover and the hovered block.
Default
4
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).offset
onOpenChange
onOpenChange:
null
| (open
) =>void
A callback that is called when the open state changes.
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).onOpenChange
onQueryChange
onQueryChange:
null
| (query
) =>void
A callback that is called when the query changes.
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).onQueryChange
overflowPadding
overflowPadding:
number
Default
8
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).overflowPadding
placement
placement:
Placement
The placement of the popover, relative to the text cursor.
Default
"bottom-start"
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).placement
regex
regex:
null
|RegExp
The regular expression to match the query text to autocomplete.
Default
null
Inherited from
ElementBuilder<AutocompletePopoverProps>(useAutocompletePopover, defaultAutocompletePopoverProps).regex