Skip to content

Commit f47c3b8

Browse files
committed
change order of examples
1 parent f979951 commit f47c3b8

File tree

1 file changed

+25
-25
lines changed
  • fern/products/docs/pages/component-library/default-components

1 file changed

+25
-25
lines changed

fern/products/docs/pages/component-library/default-components/tabs.mdx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,83 +57,83 @@ documentation site with the same language will automatically sync and switch to
5757
match. Language preferences are stored in client-side local storage and persist
5858
across browser sessions.
5959

60-
Tabs **without** the `language` property don't stay in sync with other tabs on your site. In the below example, choosing a language in
61-
either set of tabs doesn't affect the other set of tabs:
60+
In the example below, choosing a language in either set of tabs will automatically update both sets to match:
6261

6362
<Tabs>
64-
<Tab title="TypeScript">
63+
<Tab title="TypeScript" language="typescript">
6564
```typescript
6665
console.log("First code block!");
6766
```
6867
</Tab>
69-
<Tab title="Python">
68+
<Tab title="Python" language="python">
7069
```python
7170
print("First code block!")
7271
```
7372
</Tab>
74-
<Tab title="Java">
73+
<Tab title="Java" language="java">
7574
```java
7675
System.out.println("First code block!");
7776
```
7877
</Tab>
7978
</Tabs>
8079

8180
<Tabs>
82-
<Tab title="TypeScript">
81+
<Tab title="TypeScript" language="typescript">
8382
```typescript
84-
console.log("Second code block – this won't sync with the one above!");
83+
console.log("Second code block – language syncs with the one above!");
8584
```
8685
</Tab>
87-
<Tab title="Python">
86+
<Tab title="Python" language="python">
8887
```python
89-
print("Second code block – this won't sync with the one above!")
88+
print("Second code block – language syncs with the one above!")
9089
```
9190
</Tab>
92-
<Tab title="Java">
91+
<Tab title="Java" language="java">
9392
```java
94-
System.out.println("Second code block – this won't sync with the one above!");
93+
System.out.println("Second code block – language syncs with the one above!");
9594
```
9695
</Tab>
9796
</Tabs>
9897

99-
Compare this to tabs **with** the `language` property. Choosing a language in either set below will automatically update both sets to match:
98+
<Note title="Tabs and CodeBlocks integration">
99+
Language-enabled `Tabs` automatically synchronize with [`CodeBlocks` in that same language](/docs/writing-content/components/code-blocks#language-synchronization).
100+
</Note>
101+
102+
Tabs **without** the `language` property don't stay in sync with other tabs on your site. In the below example, choosing a language in
103+
either set of tabs doesn't affect the other set of tabs:
100104

101105
<Tabs>
102-
<Tab title="TypeScript" language="typescript">
106+
<Tab title="TypeScript">
103107
```typescript
104108
console.log("First code block!");
105109
```
106110
</Tab>
107-
<Tab title="Python" language="python">
111+
<Tab title="Python">
108112
```python
109113
print("First code block!")
110114
```
111115
</Tab>
112-
<Tab title="Java" language="java">
116+
<Tab title="Java">
113117
```java
114118
System.out.println("First code block!");
115119
```
116120
</Tab>
117121
</Tabs>
118122

119123
<Tabs>
120-
<Tab title="TypeScript" language="typescript">
124+
<Tab title="TypeScript">
121125
```typescript
122-
console.log("Second code block – language syncs with the one above!");
126+
console.log("Second code block – this won't sync with the one above!");
123127
```
124128
</Tab>
125-
<Tab title="Python" language="python">
129+
<Tab title="Python">
126130
```python
127-
print("Second code block – language syncs with the one above!")
131+
print("Second code block – this won't sync with the one above!")
128132
```
129133
</Tab>
130-
<Tab title="Java" language="java">
134+
<Tab title="Java">
131135
```java
132-
System.out.println("Second code block – language syncs with the one above!");
136+
System.out.println("Second code block – this won't sync with the one above!");
133137
```
134138
</Tab>
135139
</Tabs>
136-
137-
<Note title="Tabs and CodeBlocks integration">
138-
Language-enabled `Tabs` automatically synchronize with [`CodeBlocks` in that same language](/docs/writing-content/components/code-blocks#language-synchronization).
139-
</Note>

0 commit comments

Comments
 (0)