Skip to main content

SmartInput

forwardRef wrapper around InlineSuggestionInput plus optional EmojiPicker.

Feature flags​

PropDefaultEffect
enableUserMentionstruesearchUsers server action for @ suggestions
enableHashtagsfalseHashtag search stub (empty results today)
enableEmojistrue: trigger opens positioned EmojiPicker
enableImagePastetrueClipboard images → data:temp-image pill insert
existingUserIds / existingHashtags[]Marks suggestions disabled

URL auto-pill​

On trailing space after a bare https?:// token, dynamic import of @lib/config/url-pills may replace the URL with a structured pill when domain config matches.

Re-exports​

InlineSuggestionInput, InlineSuggestionInputProps, SuggestionItem for callers that do not need the full stack.


Sources: src/app/components/ui/SmartInput.tsx, src/app/components/ui/InlineSuggestionInput.tsx, src/app/components/ui/EmojiPicker.tsx, @lib/actions/user-search.actions