1.0.2 • Published 3 years ago
tagz.js v1.0.2
tagz.js
tagz.js is a very simple JS library to turn a standard text input or textarea into a fine and elegant tag editor.
Usage
There's nothing you need but the library itself and one simple line of code, such as:
document.getElementById('myTextfield').tagz()
Installation
There are two methods of installation available. You can download the js and css files and attach to your project ou use npm:
npm i tagz.js
or use unpkg CDN:
<script type="text/javascript" src="https://unpkg.com/tagz.js@1.0.0/dist/js/tagz.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/tagz.js@1.0.0/dist/css/tagz.css">
Options
bg: string
- sets the background-color of the tags
- accepts any type of color value: hex, rgb, rgba, string, hsl, etc
- default: #007BFF
color: string
- sets the font color of the tags
- also accepts any type of color value
- default: #FFF
Used technologies
JS SaSS