react-easy-tag-input

1.0.4 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i react-easy-tag-input

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

754 kB

Total Files

10

Last publish

Collaborators

  • erikmarjor