erikmartinjordan / react-easy-tag-input

🏷️ Easy way to create tags inside an input element.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-easy-tag-input

react-easy-tag-input version react-easy-tag-input license

Easy way to create tags inside an input element.

Installation

npm i --save react-easy-tag-input

Example

react-easy-tag-input

How to use

import React, { useState } from 'react';
import TagInput            from 'react-easy-tag-input';

const App = () => {
    
    const [tags, setTags] = useState(['React', 'JavaScript', 'Firebase']);
    
    return(
        <TagInput
            limit   = {5}
            tags    = {tags}
            setTags = {setTags}
            hint    = {'Separate tags by a comma (,)'}
        />
    );
    
}

export default App;

Author

Erik Martín Jordán

License

This component is open source and available under the MIT License.

About

🏷️ Easy way to create tags inside an input element.

License:MIT License


Languages

Language:JavaScript 77.6%Language:CSS 22.4%