A chip input field using bootstrap.
npm install react-bootstrap-tagsinputbash
npm install --save react-bootstrap-tagsinput
`
Usage
`tsx
import React, { useState } from 'react'
import { InputTags } from 'react-bootstrap-tagsinput'
import 'react-bootstrap-tagsinput/dist/index.css'
const App = () => {
const [state, setState] = useState([])
return (
setState(value.values)} />
className='btn btn-outline-secondary'
type='button'
data-testid='button-clearAll'
onClick={() => {
setState([])
}}
>
Delete all
{state.map((item, index) => (
- {item}
))}
)
}
``