A Javascript Library That Helps Convert Tagged Keywords Into Mobile Badge Tags

BadgeTags.js is a JavaScript library that helps convert tagged keywords into mobile badge tags. Badge-Tags.js is an open-source, dependency-free library that turns #hashtags into customizable badge tags.

convert hashtag to text, text to hashtag generator, hashtags that convert, name hashtag generator, hashtag generator multiple words, best free hashtag generator

Simple Tag Input Using Typeahead Autocomplete Built With Vue.js

How to make use of it:

1. Import the Badge-Tags.js into your HTML doc.

<link rel="stylesheet" href="src/css/style.css" />
<script src="src/js/main.js"></script>

2. Activate the library on the component containing hashtags.

<div data-badge-tags="active">
  I Love Web Code.
</div>

3. Initialize the Badge Tags and accomplished.

const tags = new BadgeTags();
// result
<div data-badge-tags="active">
  <i class="tag" style="background-color: rgb(240, 240, 240); color: grey; border-color: transparent;">CSS</i>
  <i class="tag" style="background-color: rgb(240, 240, 240); color: grey; border-color: transparent;">Web</i>
  <i class="tag" style="background-color: rgb(240, 240, 240); color: grey; border-color: transparent;">Code</i>
</div>

4. Customize the border/text/background colors.

const tags = new BadgeTags({
      textColor: "#fff",
      borderColor: "#222",
      backgroundColor: "#222",
});

5. Assign a click-on callback function to all badge tags.

const tags = new BadgeTags({
      callback: function hey(event){
        console.log(`${target.event.innerHTML}`);
      };
});

Convert #hashtags Into Tags, Badge Tags.js Plugin/Github


See Demo And Download

Official Website(Mulaza): Click Here

This superior jQuery/javascript plugin is developed by Mulaza. For extra Advanced Usages, please go to the official website.

Related Posts

Iconpicker-Bootstrap-5

[Icon Picker] Iconpicker for Bootstrap 5 Icons Library

Bootstrap 5-based icon picker which supports any icon libraries like Bootstrap Icons, Font Awesome[fontawesome.com], etc. Must Read: 1000+ Pixel Perfect SVG Icons For Vue Components | Unicons How…

bootstrap-multiple-image-upload-with-preview

Bootstrap Multiple Image Upload with Preview and Delete | ImagesLoader

ImagesLoader is a standard bootstrap image upload plugin that provides an easy-to-use and nice-looking interface for uploading multiple images to a web server. Must Read: HTML 5…

Animating-Split-Flap-Displays-fallblatt

A Lightweight jQuery Plugin for Animating Split-Flap Displays | fallblatt

fallblatt is a lightweight jQuery plugin for animating split screens. This jQuery plugin allows you to include such offers in your web application. Everything from virtual departure…

bootstrap-5-dark-theme

Dark & Light Switch Mode Toggle for Bootstrap 5

Switching to dark mode is done by toggling HTML tags that include -dark or -light as a category. It is made by manipulating the DOM with JavaScript. The text color also changes depending…

jQuery-SyoTimer-Plugin

jQuery Plugin for Countdown Timer on HTML Page | SyoTimer

yoTimer jQuery plugin allows you to create digital style countdowns/periodic timers on the webpage, with callbacks support and timezone/translation customization. Features Periodic count with the specified period…

vue-js-periodic-table

Dynamic, Data-driven Periodic Table built with Vue.js

Periodicity is a dynamic, data-driven periodic table created with Vue.js that uses D3 animations and graphs to show the beauty of periodic trends. Built With vue.js (component…