ComboboxEditor API
API reference docs for theComboboxEditorcomponent. For examples and details on the usage of this component, visit the component demo page.
Props
| Prop | Type | Description | Default |
|---|---|---|---|
children | React.ReactNode | The content of the combobox editor. | _ |
content | Content | The content of the editor. | _ |
onUpdate | (editor: Editor, currentSearchTerm: string) => void | The function to be called when the editor is updated. | _ |
options | Array of Objects | The options that will be directly used to render items in the list | _ |
placeholder | string | The placeholder for the trigger. | _ |
searchTerm | string | The search term to be used for filtering the options. | _ |
singleSelect | boolean | When true, only allows a single tag to be selected at a time. | _ |
tagAsTextFormat | (value: string) => string | Custom function to format how tags appear in ouput text representation (e.g., when using editor.getText()). | (value) => | {value} | |
editorConfig | Object | Used to configure the editor used, which will be passed to the tiptap's useEditor hook. | _ |