Skip to content

Commit f02a00f

Browse files
Add example for tabs-placement: header with updated layout settings (#396)
Co-authored-by: Devin Logan <[email protected]>
1 parent 851fbec commit f02a00f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
11.7 KB
Loading

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,18 @@ 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

243+
Tabs display in the left sidebar by default. To display them horizontally, set `tabs-placement` to `header` in your [layout configuration](/docs/customization/what-is-docs-yml#layout-configuration).
244+
245+
<CodeBlock title="docs.yml">
246+
```yaml
247+
layout:
248+
tabs-placement: header
249+
```
250+
</CodeBlock>
251+
244252
## Versions
245253

246254
If you have multiple versions of your documentation, you can introduce a dropdown version selector by specifying the `versions`. For more information, check out our [documentation on versioning](/learn/docs/building-your-docs/versioning).

0 commit comments

Comments
 (0)