Nuxt setup should use nuxt modules
Finley Baker
I asked about this on the ark-ui repo. I was told the approach is to use the
templates/nuxt
starter. There are a couple of issues:- It begs the question of how you use ark ui in a project that already exists
- It’s not how UI libraries are generally used in nuxt.
- It makes it harder to ship a styled UI library that depends on ark UI because I have to ask users to go through these steps themselves rather than adding a module that would depend on the ark ui module.
The recommended approach (and the approach that most UI libraries use) is to define a nuxt module. For example, there’s the Nuxt/ui module. The source code is here.