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
+1-30Lines changed: 1 addition & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,14 +53,7 @@ Dropdown content
53
53
54
54
## Deeplinking
55
55
56
-
Dropdowns support deeplinking via anchor links. When you navigate to a URL with a hash that points to a dropdown or content within a dropdown, the dropdown will automatically open. When you manually open a dropdown that has a name/anchor, the URL will automatically update to reflect the current state.
57
-
58
-
### Features
59
-
60
-
-**Automatic opening**: Navigate to `#dropdown-name` and the dropdown opens automatically
61
-
-**URL updates**: Open a dropdown manually and the URL updates to show the anchor
62
-
-**Nested content**: Link directly to headings or content within dropdowns
63
-
-**Browser navigation**: Proper back/forward button support
56
+
Dropdowns support deeplinking through anchor links. When you navigate to a URL with a hash that points to a dropdown or content within a dropdown, the dropdown will automatically open. When you manually open a dropdown that has a name/anchor, the URL will automatically update to reflect the current state.
64
57
65
58
:::::{tab-set}
66
59
@@ -79,11 +72,6 @@ You can also link directly to content within dropdowns. This content has the anc
79
72
80
73
:::
81
74
82
-
**Test the features:**
83
-
-[Link to dropdown](#deeplink-example) - Opens the dropdown and updates URL
84
-
-[Link to nested content](#nested-content) - Opens dropdown and scrolls to nested content
85
-
- Try opening/closing the dropdown manually and watch the URL change
86
-
87
75
::::
88
76
89
77
::::{tab-item} Markdown
@@ -100,23 +88,6 @@ When you open this dropdown manually by clicking the title, the URL will automat
100
88
You can also link directly to content within dropdowns. This content has the anchor `#nested-content`.
101
89
102
90
:::
103
-
104
-
**Test the features:**
105
-
- [Link to dropdown](#deeplink-example) - Opens the dropdown and updates URL
106
-
- [Link to nested content](#nested-content) - Opens dropdown and scrolls to nested content
107
-
- Try opening/closing the dropdown manually and watch the URL change
108
-
```
109
91
::::
110
92
111
93
:::::
112
-
113
-
### Use Cases
114
-
115
-
Deeplinking is particularly useful for:
116
-
117
-
-**FAQ sections**: Allow users to share links to specific questions
118
-
-**Documentation**: Link directly to explanations that might be collapsed by default
119
-
-**Troubleshooting guides**: Share direct links to specific solutions
120
-
-**API documentation**: Link to specific endpoint details within collapsed sections
121
-
122
-
The URL behaves just like clicking on a heading with an anchor - it updates automatically when you interact with the content.
0 commit comments