1.0.2 • Published 5 months ago

@shefing/icon-select v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Icon select field

This plugin adds a custom Icon Select field to Payload CMS, utilizing the tailwind icon library for easy selection. Users can search or scroll through icons in the dropdown, with ShadCN UI integration for a seamless, modern experience.

img1.png

Setup

Install the plugin using your node package manager, e.g:

npm install @shefing/icon-select

In the collection add the following:

import   { createIconSelectField }  from "@shefing/icon-select"

 fields: [ 
 createIconSelectField({ name: 'iconType', label: 'Select Icon' }),
 ]

To use this package, you need to install Tailwind CSS in your project.