Skip to content

Commit

Permalink
docs(installation): add namespaced components info to the resolver
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
ferferga authored Mar 20, 2024
1 parent 05e8784 commit 7865041
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/content/overview/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Radix Vue also has resolver for the popular [unplugin-vue-components](https://gi

In `vite.config.ts`, import `radix-vue/resolver`, and configure as such and it will auto-imports all the components from Radix Vue.

You can also use it for [Namespaced components](../guides/namespaced-components.md).

```ts{2,10 }
import Component from 'unplugin-vue-components/vite'
import RadixVueResolver from 'radix-vue/resolver'
Expand All @@ -46,7 +48,8 @@ export default defineConfig({
RadixVueResolver()
// RadixVueResolver({
// prefix: '' // use the prefix option to add Prefix to the imported components
// prefix: '', // use the prefix option to add Prefix to the imported components
// namespaced: false // set to true if you want to use namespaced components
// })
],
}),
Expand Down

0 comments on commit 7865041

Please sign in to comment.