UNPKG

react-autocomplete-tagbox

Version:

React Autocomplete Tagbox is a modern, customizable React component for tag input with optional autocomplete. Effortlessly add, remove, and select tags with keyboard or mouse. Supports both free-form and restricted tag entry, smart suggestions, and a clea

18 lines (15 loc) 546 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import React from 'react'; interface ReactTagsInputProps { tags: string[]; options?: string[]; onChange: (tags: string[]) => void; limit?: number; placeholder?: string; containerStyle?: React.CSSProperties; className?: string; filterData?: (data: string) => boolean; onError?: (error: string) => void; } declare function ReactAutocompleteTagbox(props: ReactTagsInputProps): react_jsx_runtime.JSX.Element; export { ReactAutocompleteTagbox as default };