import {ReactTagsInput} from 'react-tag-input-with-clear'
const [selectedItem, setSelectedItem] = React.useState([])
<ReactTagsInput
selectedTags={''}
selectedItem={selectedItem}
setSelectedItem={setSelectedItem}
placeholder='Enter tag'
labelname={'Tag Input'}
readOnlyTagInput={false}
/>
Props
- selectedTags - selected tags of inputs
- selectedItem - The value of the currently selected item of inputs
- setSelectedItem - function for setSelectedItem
- fullWidth -style for input width
- variant- variant comes with text (default), contained, and outlined
- id - id of component
- name- name of component
- placeholder - placeholder for input
- label- label for input
- labelname -label name for input
- readOnlyTagInput- input disabled property (true or false)
- sx- style for input