Skip to content

Commit ea754ff

Browse files
committed
Add info on using Panel
1 parent 166d456 commit ea754ff

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

components/panel.mdx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
---
22
title: 'Panel'
3-
description: 'TODO: Specify the display of the right side panel'
3+
description: 'Specify the content of the right side panel'
44
icon: 'panel-right'
5-
---
5+
---
6+
7+
You can use the `<Panel>` component to customize the right side panel of a page. By default, the right side panel displays a table of contents listing any titles and subtitles.
8+
9+
````md
10+
<Panel>
11+
<Info>Pin info to the side panel.</Info>
12+
13+
<Accordion title="Add an accordion.">
14+
You can put any content in here, including other components.
15+
</Accordion>
16+
17+
Or add any other component, including text.
18+
</Panel>
19+
````
20+
21+
<Panel>
22+
<Info>Pin info to the side panel.</Info>
23+
24+
<Accordion title="Add an accordion.">
25+
You can put any content in here, including other components.
26+
</Accordion>
27+
28+
Or add any other component, including text.
29+
</Panel>

0 commit comments

Comments
 (0)