Skip to content

Commit b34ec4e

Browse files
committed
📝 update doc
1 parent acade08 commit b34ec4e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Components({
109109
{ name: 'MikForm', from: 'formik', type: 'Export', orignalName: 'Form' }
110110
/**
111111
* in App.tsx
112-
* import XXX from 'ui'
112+
* import XXX fro
113113
*
114114
* in components.d.ts
115115
* const Component: typeof import('ui')['default']
@@ -120,3 +120,20 @@ Components({
120120
],
121121
})
122122
```
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

Comments
 (0)