Skip to content

A simple react component which provides tag selector functionality

Notifications You must be signed in to change notification settings

shrilakshmishastry/react-tag-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-tag-selector

react-tag-selector is a react component for the tag selection functionality.

Installation

Use the package manager npm to install react-tag-selector.

npm link https://github.com/shrilakshmishastry/react-tag-selector

Usage

import TagSelector from 'react-tag-selector';

const filterTag = [
  'python',
  'js',
  'java',
  'c==',
  'c++',
  'go',
  'groovey'
];

function App() {

  return (

    <TagSelector
      selectedTag={(value) => {
        console.log(value)
      }}
      removeTag={(value) => {
        console.log(value);
      }}
      tagsFilter={filterTag} />


  );
}

export default App;

props available

Syntax Description
selectedTag callBack function which receives the value selected from the array of tags
removeTag callback function which receives the value removed from the array of tags
tagsFilter an array of tags available
lableForInputTag string to handle aria

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A simple react component which provides tag selector functionality

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published