+ {/* Tag chips + input */}
+
{ inputRef.current?.focus(); setOpen(true) }}
+ >
+ {value.map(tag => (
+
+ {tag}
+
+
+ ))}
+ { setQuery(e.target.value); setOpen(true) }}
+ onFocus={() => setOpen(true)}
+ onKeyDown={handleKeyDown}
+ placeholder={value.length === 0 ? 'Add tags…' : ''}
+ className="flex-1 min-w-[80px] bg-transparent text-sm text-slate-200 placeholder:text-slate-600 outline-none"
+ />
+
+
+ {/* Dropdown */}
+ {showDropdown && (
+
+
+ {filtered.map(tag => (
+
+ ))}
+ {queryIsNew && (
+
+ )}
+
+
+ )}
+
+
+ Type to search or create · Enter or comma to add · Backspace to remove
+
+
+ )
+}