gitFoxCode / nuxt-icons

Module for Nuxt allowing pleasant use of svg icons
187 stars 23 forks source link

Name prop format #13

Closed szulcus closed 1 year ago

szulcus commented 1 year ago

Is it possible to change the name format? In the project I use kebab-case for svg icons and it looks quite strange. So far, I have used the format preferred by @nuxtjs/svg-sprite (e.g: "fa/ban-solid"). It would be nice to be able to use something similar here. image image

I also have if the module is working properly. Currently, I can only use icons nested in a folder. Those located directly in it (without prefix) don't work. Is this the expected behavior?

gitFoxCode commented 1 year ago

In the next version, the naming will be changed to nuxt-icon name="fa/ban-solid" (this version is practically ready, I'm just waiting for some feedback from people higher up in nuxt). Should appear in days

szulcus commented 1 year ago

In the next version, the naming will be changed to nuxt-icon name="fa/ban-solid" (this version is practically ready, I'm just waiting for some feedback from people higher up in nuxt). Should appear in days

Thank you for your quick reply. I just edited the issue and added a few more sentences. Will this be fixed in a future release?

gitFoxCode commented 1 year ago

@szulcus This is not an expected occurrence, you should be able to use the <nuxt-icon name="arrow-left">

szulcus commented 1 year ago

@gitFoxCode Sorry, everything is working fine. I thought I needed to write Arrow-left or ArrowLeft, but arrow-left works. Have a nice weekend, greetings from Poland 😁

gitFoxCode commented 1 year ago

@szulcus Nie ma sprawy, ps też jestem z Polski i też jestem studentem 😁

gitFoxCode commented 1 year ago

@szulcus Najnowsza wersja na Nuxt 3.0.0 już jest dostępna i zawiera zmianę o którą pytałeś, zachęcam do testowania i w razie czego stwórz nowy issue, dużo zmian wprowadziłem w tym module i potrzebuję feedbacku jeżeli coś nie będzie działać

szulcus commented 1 year ago

@gitFoxCode Dzięki, jesteś wielki! ❤️ Przy okazji, jeśli już mam możliwość pisać po polsku, zapytam o coś 😅. Jestem obecnie na konferencji Nuxt Nation i padł pomysł na połączenie sił razem z modułem nuxt-icon. Co o tym sądzisz? image

gitFoxCode commented 1 year ago

@szulcus Jasne, jestem chętny do współpracy, z tego co wiem nuxt-icon zajmują się też programiści samego nuxta. Dla mnie najważniejsze jest ułatwienie życia programistom (w tym samemu sobie) podczas 'babrania' się z ikonami. Tego typu moduł powinien już być dawno wprowadzony w core samego nuxta, każda strona internetowa używa ikon.