Currently selected keyword keys
Name for the hidden JSON array input
OptionalchoicesMap: Record<string, string> = {}
key→label map (used only to render initial chip labels)
Optionalopts: { style?: string } = {}
Optionalstyle?: stringExtra inline style on the wrapper div
HTML string
Build HTML for a compact keyword chip multi-select widget. Selected keywords are shown as removable chips; a combobox below lets the user add more. The selected keys are stored as a JSON array in a hidden input.