sfxcode / formkit-primevue

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

Auto import PrimeVue components #1

Closed huzaifahj closed 1 year ago

huzaifahj commented 2 years ago

Hey, this works great! FormKit and PrimeVue are a good match. The best of form development and UI.

Wondering if the app could bundle PrimeVue components somehow? So that we wouldn't have to do

import Calendar from "primevue/calendar"
app.component("Calendar", Calendar)

for each component we plan to use.

ohmree commented 2 years ago

@huzaifahj this should be possible using unplugin-vue-components, no?

EDIT: I was talking out of my behinds, it seems like this package expects PrimeVue components to be defined globally on the app.

sfxcode commented 1 year ago

Added Nuxt 3 Module

https://github.com/sfxcode/nuxt-primevue

Global PrimeVue Import and Formkit PrimeVue ...