mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
5a3d1ddabb
* docs: sync es/fr/zh translations with recent English updates * docs: tighten descriptions and replace HTML entities with real quotes --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
23 lines
858 B
Plaintext
23 lines
858 B
Plaintext
---
|
|
title: "Panel"
|
|
description: "自定义文档页面右侧面板的内容,用于显示补充信息、示例或导航元素。"
|
|
keywords: ["sidebar"]
|
|
boost: 3
|
|
---
|
|
|
|
你可以使用 `<Panel>` 组件,在页面右侧面板中加入任意组件以实现自定义。
|
|
|
|
如果页面包含 `<Panel>` 组件,则所有 [RequestExample](/zh/components/examples#requestexample) 和 [ResponseExample](/zh/components/examples#responseexample) 组件都必须置于 `<Panel>` 内。
|
|
|
|
`<Panel>` 中的组件会替换页面的目录。会隐藏目录的页面模式(`mode: "wide"`、`mode: "center"` 和 `mode: "custom"`)也会隐藏 `<Panel>` 组件。
|
|
|
|
```mdx
|
|
<Panel>
|
|
<Info>将 Info 固定在侧边面板上,或添加任何其他组件。</Info>
|
|
</Panel>
|
|
```
|
|
|
|
<Panel>
|
|
<Info>将 Info 固定在侧边面板上,或添加任何其他组件。</Info>
|
|
</Panel>
|