MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / onKeywordsChange

Function onKeywordsChange

src/showcase/components/input/TagInput.tsx:13–16  ·  view source on GitHub ↗
(newKeywords: string[])

Source from the content-addressed store, hash-verified

11 const [keywords, setKeywords] = useState<string[]>(['ansub', 'syntax'])
12
13 const onKeywordsChange = (newKeywords: string[]) => {
14 setKeywords(newKeywords)
15 // Additional actions upon keywords change can be handled here
16 }
17 const [inputValue, setInputValue] = useState<string>('')
18
19 // Handles adding new keyword on Enter or comma press, and keyword removal on Backspace

Callers 4

handleKeyDownFunction · 0.85
handlePasteFunction · 0.85
handleBlurFunction · 0.85
removeKeywordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected