Skip to content

prosekit/lit/autocomplete

AutocompleteEmpty

constructor

new AutocompleteEmpty(): AutocompleteEmpty

AutocompleteItem

constructor

new AutocompleteItem(): AutocompleteItem

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: ""

AutocompleteList

constructor

new AutocompleteList(): AutocompleteList

AutocompletePopover

constructor

new AutocompletePopover(): AutocompletePopover

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

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