Skip to content

Commit 72cf9f9

Browse files
committed
Add rsbuild tutorial to document
1 parent 9d45acb commit 72cf9f9

File tree

1 file changed

+23
-0
lines changed
  • apps/landing/src/app/(detail)/docs/installation

1 file changed

+23
-0
lines changed

apps/landing/src/app/(detail)/docs/installation/page.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,29 @@ export default defineConfig({
6565
})
6666
```
6767

68+
### Using Devup UI with Rsbuild
69+
70+
If you are using rsbuild, you can install the rsbuild plugin.
71+
72+
```bash
73+
npm install @devup-ui/rsbuild-plugin
74+
```
75+
76+
After installing the plugin, you can use the plugin in your rsbuild project.
77+
78+
```js
79+
// rsbuild.config.mjs
80+
81+
import { defineConfig } from '@rsbuild/core';
82+
import { pluginReact } from '@rsbuild/plugin-react';
83+
import { DevupUIRsbuildPlugin } from '@devup-ui/rsbuild-plugin';
84+
85+
export default defineConfig({
86+
plugins: [pluginReact(), DevupUIRsbuildPlugin()],
87+
});
88+
89+
````
90+
6891
## Project Examples
6992
7093
- [Next.js Example](https://github.com/dev-five-git/devup-ui/tree/main/apps/next)

0 commit comments

Comments
 (0)