mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
4b465465dd
Generated-By: mintlify-agent Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
23 lines
736 B
Plaintext
23 lines
736 B
Plaintext
---
|
|
title: "Panel"
|
|
description: "自定义文档页面右侧面板的内容,用于显示补充信息、示例或导航元素。"
|
|
keywords: ["sidebar"]
|
|
boost: 3
|
|
---
|
|
|
|
你可以使用 `<Panel>` 组件,在页面右侧面板中加入任意组件以实现自定义。
|
|
|
|
如果页面包含 `<Panel>` 组件,则所有 [RequestExample](/zh/components/examples#requestexample) 和 [ResponseExample](/zh/components/examples#responseexample) 组件都必须置于 `<Panel>` 内。
|
|
|
|
`<Panel>` 中的组件会替换页面的目录。
|
|
|
|
```mdx
|
|
<Panel>
|
|
<Info>将 Info 固定在侧边面板上,或添加任何其他组件。</Info>
|
|
</Panel>
|
|
```
|
|
|
|
<Panel>
|
|
<Info>将 Info 固定在侧边面板上,或添加任何其他组件。</Info>
|
|
</Panel>
|