Skip to content

Commit 3a1448c

Browse files
committed
Updated Tab section
- Added information about adding tabs in the header. - Updated image of tabs-sidebar to match with the theme of the fern. - Added image for tabs in header placement
1 parent 14c12f5 commit 3a1448c

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed
9.69 KB
Loading
11.7 KB
Loading

fern/products/docs/pages/navigation/overview.mdx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -237,27 +237,22 @@ tabs:
237237
Here's an example of what the Tabs implementation looks like:
238238

239239
<Frame>
240-
![Screenshot showing two vertically stacked tabs labeled API Reference and Help
241-
Center](https://fern-image-hosting.s3.amazonaws.com/fern/tabs.png)
240+
<img src="./images/tabs-sidebar.png" alt="Tabs displayed in the sidebar (default)" />
242241
</Frame>
243242

244-
By default, tabs appear in the left sidebar. To display them horizontally in docs.yml, set `tabs-placement` to `header` in your layout configuration.
245-
246-
`tabs-placement` supports two values:
247-
- `sidebar` *(default)* — Tabs are displayed vertically in the left sidebar.
248-
- `header` — Tabs are displayed horizontally in the top navigation bar.
249-
250-
Example:
243+
By default, tabs appear in the left sidebar. To display them horizontally, set `tabs-placement` to `header` in your layout configuration.
251244

252245
<CodeBlock title="docs.yml">
253246
```yaml
254247
layout:
255248
tabs-placement: header
256249
```
257250
</CodeBlock>
251+
252+
Here's an example of what the header placement looks like:
253+
258254
<Frame>
259-
![Screenshot showing two horizontally placed tabs labeled API Reference and Help
260-
Center](https://fern-image-hosting.s3.amazonaws.com/fern/tabs-horizontal.png)
255+
<img src="./images/tabs-header.png" alt="Tabs displayed in the sidebar (default)" />
261256
</Frame>
262257

263258
## Versions

0 commit comments

Comments
 (0)