sfxcode / formkit-primevue

PrimeVue (v4, v3) support for the FormKit validation Framwork
https://sfxcode.github.io/formkit-primevue
85 stars 10 forks source link

How can I use this module with unstyled PT #28

Closed rogrile closed 6 months ago

rogrile commented 7 months ago

I am using Primevue Unstyled with Tailwind, and I have my own components creating using the PT config. However, I see that using tailwind you can use existing tailwind classes, but when you use Unstyled PT, the classes do not exist, so you cannot style using classes, and I was thinking of how I can use my vue components as inputs for the form.

sfxcode commented 7 months ago

Hi, i am still waiting for the official release of the new way of using the unstyled mode (in 2 weeks). For the moment there is sometimes the need of the !important notion to use tailwind classes in pt because the base styleclass from p-input is used for example. I have made a small demo with the last release.

https://formkit-primevue.netlify.app/demo/passThrough

Maybe you can share a short demo if that does not work for you.

Hope that helps a little bit,

Tom

rogrile commented 7 months ago

This is great! Also, what about the password weakness meter? Can't seem to put that in there no matter how much I try

sfxcode commented 7 months ago

Hi, please use the feedback attribute:

    "$formkit": "primePassword",
    "name": "password",
    "label": "Password",
    "help": "Enter your new password",
    "feedback": true
  },
rogrile commented 7 months ago

Hey, is there a way I could find all these options anywhere? I didn't see this feedback option while going through the docs.

rogrile commented 7 months ago

Either way, you're doing a great job, thanks a lot!

sfxcode commented 6 months ago

Hi, i try to add more documentation soon, will close this issue meanwhile