组件库
底层无头组件库。
概览
🌐 Overview
Fumadocs 界面同时支持 Base UI 和 Radix UI,默认情况下使用 Radix UI。
🌐 Fumadocs UI maintains support for both Base UI and Radix UI, while it uses Radix UI by default.
如果你使用 Fumadocs CLI 自定义组件,配置可能会有所不同。
🌐 The configuration may be different if you use Fumadocs CLI for customising components.
基础界面
🌐 Base UI
你可以通过将 fumadocs-ui 替换为 @fumadocs/base-ui 包来选择使用 Base UI:
🌐 You can opt-in to use Base UI by replacing fumadocs-ui with the @fumadocs/base-ui package:
{
"dependency": {
"fumadocs-ui": "npm:@fumadocs/base-ui@latest"
}
}对于 Fumadocs CLI,也请在你的 cli.json 配置中进行配置:
🌐 For Fumadocs CLI, also configure it in your cli.json config:
{
"uiLibrary": "base-ui"
}Last updated on
