Skip to main content

PillInput

Controlled string input that displays #tags and @[username|userId] segments via ContentWithPills until the user clicks to edit raw text.

Props (PillInputProps)​

PropNotes
value / onChangeControlled string
contextIdPassed to nested ContentWithPills
onHashtagClick / onMentionClickPill interaction in display mode
placeholder, disabled, classNameStandard field chrome

Editing​

Click container → inline <input>; Enter commits, Escape cancels, blur commits. Outside click commits. Parser regex: /#\w+/ and /@\[[^\]]+\]/.


Sources: src/app/components/ui/PillInput.tsx, src/app/components/ui/ContentWithPills.tsx