A Minimal Cool Aesthetic Icon Picker In JavaScript

Aesthetic is a beautiful, sensitive icon picker that supports almost all open source icon libraries such as Font Awesome (default), bootstrap icons, material icons, and more.

It also provides a Vue.js wrapper that you can easily integrate the icon picker into your Vue.js 3 app. You can download Vue.js 3 for the icon picker here.

How to make use of it:

1. Include an icon library on your web page.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/VERSION/css/all.min.css" />

2. Include the Aesthetic Icon Picker’s information on the web page.

<link rel="stylesheet" href="assets/css/style.css" />
<script src="assets/js/aesthetic-icon-picker.js"></script>

3. Create the HTML for the icon picker.

<div class="icon-picker-wrap" id="icon-picker-wrap">
  <ul class="icon-picker">
    <!-- Clear Button -->
    <li class="icon-none" title="None"><i class="fas fa-ban"></i></li>
    <!-- Select Button -->
    <li id='select-icon' class="select-icon" title="Icon Library"><i class="fas fa-circle"></i></li>
    <!-- Store The Icon Value You Selected -->
    <input type="hidden" name="icon_value" id="icon_value" value="">
  </ul>
</div>

4. Initialize the icon picker and finished.

AestheticIconPicker({
  // must be an ID
  'selector': '#icon-picker-wrap', 
  // must be an ID
  'onClick': '#select-icon',  
});

5. Add an extra icon library to the icon picker as follows:

var newIcon = {
    "customIconLib":{
      "regular":{
        "prefix": "customIcon-",
        "icon-style": "custom-regular",
        "list-icon":"custom",
        "icons":["custom-icon-1", "custom-icon-2", ...]
      },
      "solid":{
        "prefix": "customIcon-",
        "icon-style": "custom-solid",
        "list-icon":"custom",
        "icons":["custom-icon-1", "custom-icon-2", ...]
      },
      // ...
    }
}
AestheticIconPicker({
  // must be an ID
  'selector': '#icon-picker-wrap', 
  // must be an ID
  'onClick': '#select-icon',  
  // register the custom icon library
  'iconLibrary': newIcon
});

Beautiful Icon Picker, Aesthetic Icon Picker Plugin/Github


See Demo And Download

Official Website(sh-sabbir): Click Here

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

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

Star-Rating-JavaScript

Select Box Based Star Rating JavaScript Library | star-rating.js

star-rating.js is a small JavaScript library to create a customizable and gradually improved star rating control from a regular tick box with numeric values. The ES6 module…

Bootstrap-Show-Notification

Corner Fixed Notifications Alerts With Bootstrap | BS4 Show Notification

Bootstrap Notification is an easy-to-use jQuery plugin that uses the Bootstrap Alerts component to create static, rejectable, and stackable notification popups in the upper right corner of the…

Stackable-Multi-level-Sidebar-Menu

Create Stackable Multi-level Sidebar Menu | HC Off-canvas Nav

Multi-Level Sidebar Slide Menu – HC MobileNav is a jQuery plugin for creating multi-level, mobile-first, totally accessible, off-canvas facet navigation that helps the infinite nesting of submenu…

vue-masonry-gallery

Responsive Masonry Layout with SSR Support for Vue 3 | vue-masonry-wall

Vue masonry wall is a responsive masonry layout component for Vue 3 to deliver a Masonry-style responsive grid layout with SSR and RTL layout support. Features 📱…

bootstrap-5-bs-toaster

A Bootstrap 5 Toast Notification Framework Library | bs-toaster

bs-toaster is simple to instantiate bs-toaster and create multiple toasts effortlessly using native Bootstrap 5! Feature Facts Small and clean Modern browser support. No IE sorry 💥…