You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/syntax/dropdowns.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,30 +2,51 @@
2
2
3
3
Dropdowns allow you to hide and reveal content on user interaction. By default, dropdowns are collapsed. This hides content until a user clicks the title of the collapsible block.
4
4
5
-
## Syntax
5
+
## Basic dropdown
6
+
7
+
8
+
:::::{tab-set}
9
+
10
+
::::{tab-item} Output
6
11
7
-
```markdown
8
12
:::{dropdown} Dropdown Title
9
13
Dropdown content
10
14
:::
11
-
```
12
15
16
+
::::
17
+
18
+
::::{tab-item} Markdown
19
+
```markdown
13
20
:::{dropdown} Dropdown Title
14
21
Dropdown content
15
22
:::
23
+
```
24
+
::::
25
+
26
+
:::::
16
27
17
-
###Open by default
28
+
## Open by default
18
29
19
30
You can specify that the dropdown content should be visible by default. Do this by specifying the `open` option. Users can collapse content by clicking on the dropdown title.
0 commit comments