An open API service indexing awesome lists of open source software.

https://github.com/shakilahmed0369/ez-tabler-icon-picker

A simple, intuitive icon picker for Tabler Icons, perfect for quick integration and effortless customization.
https://github.com/shakilahmed0369/ez-tabler-icon-picker

iconpicker javascript tabler tabler-icons

Last synced: 3 months ago
JSON representation

A simple, intuitive icon picker for Tabler Icons, perfect for quick integration and effortless customization.

Awesome Lists containing this project

README

          

# EZ Tabler Icon Picker

A flexible, easy-to-use icon picker for Tabler Icons.
![banner](https://github.com/user-attachments/assets/883a042f-43f7-45ec-92ae-312aac6b4107)

## Installation

Setup is straightforward:

1. Add **Tabler Icons** to your project.
2. Add **EZ Icon Picker** to your project.
3. Initialize EZ Icon Picker.

### Add the Required Files

Include the following links in your HTML file to load Tabler Icons and EZ Icon Picker:

```html

```

### Load EZ Icon Picker JavaScript

Add the following to load EZ Icon Picker:

```html

```

### Setup the Icon Picker

1.Add a div with a selector class, e.g., .icon-picker.

```html


```

2.Initialize the picker by adding the following JavaScript:

``` javascript

document.addEventListener('DOMContentLoaded', () => {
new EzIconPicker({
selector: '.icon-picker'
});
});

```

### Full Example Code

Here’s the complete HTML setup for the EZ Tabler Icon Picker:

``` html




Tabler Icon Picker




document.addEventListener('DOMContentLoaded', () => {
new EzIconPicker({
selector: '.icon-picker'
});
});

```

### Properties

`data-name` - Specifies the name of the input field, useful for form submissions.

`data-icon` - Allows pre-selecting an icon by specifying its class name

## Example Usage

To create an icon picker with a default icon, use the following code:

``` html


```