Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions components/panel.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: 'Panel'
description: 'Specify the content of the right side panel'
icon: 'panel-right'
---

You can use the `<Panel>` component to customize the right side panel of a page with any components that you want.

If a page has a `<Panel>` component, any [`<RequestExample>`](/components/examples#request-example) and [`<ResponseExample>`](/components/examples#response-example) components must be inside `<Panel>`.

The components in a `<Panel>` will replace a page's table of contents.

````md
<Panel>
<Info>Pin info to the side panel. Or add any other component.</Info>
</Panel>
````

<Panel>
<Info>Pin info to the side panel. Or add any other component.</Info>
</Panel>
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"components/frames",
"components/icons",
"components/mermaid-diagrams",
"components/panel",
"components/steps",
"components/tabs",
"components/tooltips",
Expand Down