lukas-frey / filament-icon-picker

An icon picker field for Filament
MIT License
101 stars 20 forks source link

How do I setup a new set? #10

Closed crayon1337 closed 1 year ago

crayon1337 commented 1 year ago

Looking forward to install fontawesome set. But, I can't find anything regarding that in the documentation. Tried the following:

IconPicker::make(name: 'icon')
        ->required()
        ->sets(['heroicons', 'fontawesome-solid'])
        ->columns([
            'default' => 1,
            'lg' => 3,
            '2xl' => 5,
        ]),

However, fontawesome icons are not loaded so I guess there is a step I need to do.

lukas-frey commented 1 year ago

Looking forward to install fontawesome set. But, I can't find anything regarding that in the documentation. Tried the following:

IconPicker::make(name: 'icon')
        ->required()
        ->sets(['heroicons', 'fontawesome-solid'])
        ->columns([
            'default' => 1,
            'lg' => 3,
            '2xl' => 5,
        ]),

However, fontawesome icons are not loaded so I guess there is a step I need to do.

You need to have the respective Blade UI Icons set installed: https://github.com/owenvoke/blade-fontawesome

EDIT: and after installing the icon set, you need to clear the cache.

crayon1337 commented 1 year ago

Thanks a lot :)

Shipu commented 11 months ago

Installed: https://github.com/owenvoke/blade-fontawesome and clear cache but not showing the icons