0.0.5 • Published 3 years ago

react-input-tags-hooks v0.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

📋 React input tags using hooks

A lightweight React component input tags.

Demo

bundlephobia badge bundlephobia badge bundlephobia badge

npm i react-input-tags-hooks

Usage

import InputTags from "react-input-tags-hooks";
import 'react-input-tags-hooks/build/index.css'; // required

<InputTags
  onTag={getTags} // returns array of tags
  color='#48c774' 
  placeHolder="Press enter to add tags"
/>

Examples:

const App = () => {

  const [tags, setTags] = useState([])

  const getTags = (tags) => {
    setTags(tags);
  }

  return (
    <InputTags
      onTag={getTags}
      color={'#48c774'}
      placeHolder="Press enter to add tags"
    />
  );
}

License

MIT

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago