Skip to main content

InlineSuggestionInput

Portal-mounted suggestion panel triggered by # or @ before the caret.

Props (InlineSuggestionInputProps)​

PropDefaultNotes
value / onChangerequiredControlled
onHashtagSearch / onUserSearch—Paginated SuggestionItem[] providers
as'input''textarea' + rows
maxSuggestions10
minQueryLength2Before fetch
onPaste—Used by SmartInput for images

SuggestionItem​

id, value, label, optional displayName, avatar, type: 'hashtag' \| 'user', disabled.

UX​

Keyboard navigation in list; positions dropdown from caret geometry; click-outside and Escape dismiss. Implementation lives in a large single module—see source for pagination (“load more”) and trigger index bookkeeping.


Sources: src/app/components/ui/InlineSuggestionInput.tsx