Tabs
Tabs split a product or version into parallel bodies of content, each with its own sidebar. Tab variants give a single tab more than one version of its content, such as REST versus GraphQL or beginner versus advanced.
Two tabs make sense when the content is unrelated, like guides and an API Reference. Variants of one tab make sense when it covers the same ground for a different reader. A tab menu collects several tabs under one header tab, such as a Products tab with one tab per product.
Tabs
To configure tabs:
- Declare each tab under the top-level
tabskey with adisplay-nameand anicon. - Reference the tab in
navigationwithtab:. Each tab requires either alayoutfor its content,variantsfor tab variants, or anhrefpointing at an external URL.

Icons can be in three formats:
- Font Awesome icons: Use icon names like
fa-solid fa-rocket. Pro and Brand Icons from Font Awesome are supported. - Custom image files: Use relative paths to image files (e.g.,
./assets/icons/my-icon.svgor../assets/icons/my-icon.png). Paths are relative to the YAML file where the icon is referenced (e.g.,docs.yml). For example, if you set an icon infern/products/my-product.yml, the path./assets/icon.svgresolves tofern/products/assets/icon.svg. If you set it infern/docs.yml, the same path resolves tofern/assets/icon.svg. - Inline SVG: Provide an SVG string wrapped in quotes (e.g.,
"<svg>...</svg>").
Tabs placement and styling
Tabs display in the left sidebar by default. Use theme.tabs to control placement, style, and alignment.
When header tabs don’t fit in the header, the tab row scrolls horizontally. A scrollable edge fades out and shows a chevron button that scrolls the row by one tab, and the active tab scrolls into view when the page loads. The chevrons are hidden when the row can’t scroll further in that direction. Style the row with the .fern-header-tabs-* selectors.
Tab properties
display-name
The name shown in the tab header
icon
Icons can be in three formats:
- Font Awesome icons: Use icon names like
fa-solid fa-rocket. Pro and Brand Icons from Font Awesome are supported. - Custom image files: Use relative paths to image files (e.g.,
./assets/icons/my-icon.svgor../assets/icons/my-icon.png). Paths are relative to the YAML file where the icon is referenced (e.g.,docs.yml). For example, if you set an icon infern/products/my-product.yml, the path./assets/icon.svgresolves tofern/products/assets/icon.svg. If you set it infern/docs.yml, the same path resolves tofern/assets/icon.svg. - Inline SVG: Provide an SVG string wrapped in quotes (e.g.,
"<svg>...</svg>").
slug
Custom URL slug for the tab
skip-slug
Exclude the tab slug from URLs
hidden
Hide the tab from navigation. See Hiding content for details.
layout
Navigation structure for the tab’s content. Required unless the tab uses variants or href.
variants
List of tab variants. Use instead of layout.
tab-menu
Turns the tab into a tab menu of other tabs that opens from the header. Set on the tab’s entry under tabs, not in navigation. Each tab in the menu still needs its own - tab: entry in navigation.
tab-menu-column-height
Maximum number of entries per column in the tab’s menu. no-limit keeps a single column. Overrides layout.tab-menu.default-column-height. Only applies when the tab has a tab-menu.
href
External URL. When set, clicking the tab redirects to this URL. Tabs with href must not include layout or variants.
target
Where the link opens. One of _blank, _self, _parent, or _top.
changelog
Path to a changelog folder, relative to the YAML file where it is set (e.g., docs.yml)
viewers
Role-based access control for the tab
orphaned
When true, roles don’t inherit from parent elements
feature-flag
Conditional display configuration
Tab variants
To add variants to a tab:
- Replace the tab’s
layoutwith avariantslist. The declaration undertabs:doesn’t change. - Give each variant a
titleand its ownlayout.
Variants support RBAC, so a variant can be limited to readers holding a given role.
Variant groups and links
A variants list also accepts group entries and links. A group adds a header above its items in the variant selector, and a link (link and href) points at an external URL. Groups hold variants and links, not other groups.
Variant properties
title
Display name for the variant
layout
Navigation structure using the same format as regular tab layouts
subtitle
Text displayed below the variant title
icon
Icons can be in three formats:
- Font Awesome icons: Use icon names like
fa-solid fa-rocket. Pro and Brand Icons from Font Awesome are supported. - Custom image files: Use relative paths to image files (e.g.,
./assets/icons/my-icon.svgor../assets/icons/my-icon.png). Paths are relative to the YAML file where the icon is referenced (e.g.,docs.yml). For example, if you set an icon infern/products/my-product.yml, the path./assets/icon.svgresolves tofern/products/assets/icon.svg. If you set it infern/docs.yml, the same path resolves tofern/assets/icon.svg. - Inline SVG: Provide an SVG string wrapped in quotes (e.g.,
"<svg>...</svg>").
slug
Custom URL slug for the variant
skip-slug
Exclude the variant slug from URLs
hidden
Hide the variant from navigation. See Hiding content for details.
default
When true, this variant displays by default. If not specified, the first variant in the list is used.
viewers
Role-based access control for the variant
orphaned
When true, roles don’t inherit from parent elements
feature-flag
Conditional display configuration
Tab menus
A tab menu turns a header tab into a menu of other tabs. The menu opens when a reader hovers over the tab, and each entry opens a tab with its own sidebar. Use a tab menu when a site has more top-level areas than fit in the header, such as one tab per product.
To configure a tab menu:
- Add a
tab-menuto the menu tab’s entry undertabs. Each entry declares a menu tab with atabID and adisplay-name. Menu tabs aren’t also declared undertabs. - In
navigation, add a- tab:entry for the menu tab with nolayoutorvariants. Its position sets where the menu sits in the header. - Menu tabs still need to be defined in
navigation. Add a- tab:entry for each one with alayout, or withvariantsthat show in a selector at the top of that tab’s sidebar.
Tab menus require header tabs (layout.tabs-placement: header or theme.tabs.placement: header). Without header tabs, the menu’s tabs show in a selector at the top of the sidebar instead, and fern check warns.

Menu tab URLs nest under the menu tab, so the Agents overview is served at /products/agents/overview. Two menu tabs in one menu can’t share a slug; set slug on one of them when their display names match.

Groups and links
A tab-menu entry is a menu tab, a group, or a link. A group has a header and a tabs list of menu tabs and links. A link has link and href, plus an optional icon and target. Groups can’t contain other groups. Menu tabs inside a group still need their own - tab: entry in navigation.
Columns and behavior
Long menus split into columns. Set the maximum number of entries per column with tab-menu-column-height on the tab, or for every menu with layout.tab-menu.default-column-height. Use no-limit for a single column.
Menus open on hover and close when the pointer leaves the tab and menu.
Menu tab properties
tab-menu[].tab
ID of the menu tab. Each menu tab needs a matching - tab: entry in navigation that holds its pages.
tab-menu[].display-name
Name shown in the menu
tab-menu[].subtitle
Text displayed below the name in the menu
tab-menu[].icon
Icons can be in three formats:
- Font Awesome icons: Use icon names like
fa-solid fa-rocket. Pro and Brand Icons from Font Awesome are supported. - Custom image files: Use relative paths to image files (e.g.,
./assets/icons/my-icon.svgor../assets/icons/my-icon.png). Paths are relative to the YAML file where the icon is referenced (e.g.,docs.yml). For example, if you set an icon infern/products/my-product.yml, the path./assets/icon.svgresolves tofern/products/assets/icon.svg. If you set it infern/docs.yml, the same path resolves tofern/assets/icon.svg. - Inline SVG: Provide an SVG string wrapped in quotes (e.g.,
"<svg>...</svg>").
tab-menu[].slug
Custom URL slug for the menu tab
tab-menu[].skip-slug
Exclude the menu tab slug from URLs
tab-menu[].hidden
Hide the menu tab from the menu. See Hiding content for details.
tab-menu[].default
When true, this menu tab displays by default. If not specified, the first tab in the menu is used.
tab-menu[].viewers
Role-based access control for the menu tab
tab-menu[].orphaned
When true, roles don’t inherit from parent elements
tab-menu[].feature-flag
Conditional display configuration