We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acade08 commit b34ec4eCopy full SHA for b34ec4e
README.md
@@ -109,7 +109,7 @@ Components({
109
{ name: 'MikForm', from: 'formik', type: 'Export', orignalName: 'Form' }
110
/**
111
* in App.tsx
112
- * import XXX from 'ui'
+ * import XXX fro
113
*
114
* in components.d.ts
115
* const Component: typeof import('ui')['default']
@@ -120,3 +120,20 @@ Components({
120
],
121
})
122
```
123
+
124
+or you can use `createResolver`
125
126
+```ts
127
+import { createResolver } from 'unplugin-react-components'
128
129
+Components({
130
+ resolvers: [
131
+ createResolver({
132
+ module: 'react-ui',
133
+ prefix: 'RUi',
134
+ exclude: (name) => {
135
+ return name.startsWith('Excluded')
136
+ },
137
+ })
138
+ ]
139
+})
0 commit comments