File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,36 @@ class HelloWorld {
28
28
29
29
</CodeGroup >
30
30
31
+ ## Language dropdown
32
+
33
+ You can replace the tabs in a code group with a dropdown menu to toggle between languages.
34
+
35
+ <CodeGroup dropdown >
36
+
37
+ ``` javascript helloWorld.js
38
+ console .log (" Hello World" );
39
+ ```
40
+
41
+ ``` python hello_world.py
42
+ print (' Hello World!' )
43
+ ```
44
+
45
+ ``` java HelloWorld.java
46
+ class HelloWorld {
47
+ public static void main (String [] args ) {
48
+ System . out. println(" Hello, World!" );
49
+ }
50
+ }
51
+ ```
52
+
53
+ </CodeGroup >
54
+
55
+ ### Props
56
+
57
+ <ResponseField name = " dropdown" type = " boolean" >
58
+ Whether to show a dropdown button to toggle the code groups with languages as the options.
59
+ </ResponseField >
60
+
31
61
<RequestExample >
32
62
33
63
```` mdx Code Group Example
You can’t perform that action at this time.
0 commit comments