We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 191b7ec commit be707adCopy full SHA for be707ad
packages/docs/build/api.js
@@ -21,14 +21,18 @@ const options = {
21
savePropValueAsString: true,
22
}
23
24
+const PRO_COMPONENTS = []
25
+
26
async function createMdx(file, filename, name, props) {
27
if (typeof props === 'undefined') return
28
29
+ const pro = PRO_COMPONENTS.some((v) => file.includes(v))
30
31
let content = `
32
\`\`\`jsx
-import { ${name} } from '@coreui/react'
33
+import { ${name} } from '@coreui/react${pro ? '-pro' : ''}'
34
// or
-import ${name} from '@coreui/react/${file.replace('.tsx', '')}'
35
+import ${name} from '@coreui/react${pro ? '-pro' : ''}${file.replace('.tsx', '').replace(GLOBBY_OPTIONS.cwd, '')}'
36
\`\`\`\n
37
`
38
0 commit comments