Using Radix UI
Use the Radix UI component library instead of Base UI.
Overview
Fumapress uses the Base UI headless component library by default, same as Fumadocs. If you are using Radix UI, Fumapress also supports the Radix UI build of Fumadocs UI.
You can enable it by installing fumadocs-ui without the @fumadocs/base-ui alias:
npm i fumadocs-ui
npm uninstall @base-ui/reactOptionally, update your Vite config:
import { defineConfig } from "waku/config";
import tailwindcss from "@tailwindcss/vite";
import press from "fumapress/vite";
import mdx from "fumadocs-mdx/vite";
export default defineConfig({
vite: {
resolve: {
// optional, but often solves some weird problems in monorepo
dedupe: ["fumadocs-ui"],
},
plugins: [press(), mdx(), tailwindcss()],
},
});Last updated on
