moderator-toolbox-nxg-for-reddit / modules/subredditnotes/components/TagInput

modules/subredditnotes/components/TagInput

Functions

TagInput()

TagInput(__namedParameters): Element

Defined in: extension/data/modules/subredditnotes/components/TagInput.tsx:12

Displays existing tags as removable pills and provides a text input with autocomplete for adding new tags. Pressing Enter or comma commits the current input; Backspace on an empty input removes the last pill.

Parameters

__namedParameters
aria-label?

string

className?

string

disabled?

boolean = false

onChange

(tags) => void

suggestions

string[]

Existing tags from the note index, used to populate the autocomplete dropdown.

tags

string[]

Returns

Element