API reference
@salmonui/chat/text-suggest
9 exported symbols: 1 function, 5 interfaces and 3 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/chat/text-suggest';Functions
useTextSuggestAttaches inline suggestions to the <textarea> that receives ref. Options are read when events happen, so suggest and the callbacks may be inline functions.
Interfaces
BeforeSuggestionShowEventCancellable event fired before a suggestion shows.SuggestContextWhat the application's suggest function receives.SuggestLocaleTextSuggestionEventTextSuggest
Types
SuggestFunctionSuggestionDisplay'auto': inline ghost text on fine pointers, a popover on coarse pointers, chosen by CSS.TextSuggestOptions