- First tab
- Second tab
- Third tab
☝️ Welcome to the content that you can only see inside the first tab.You can add any number of components inside of tabs. For example, a code block:
HelloWorld.java
Tabs example
JavaScript tab title, selecting JavaScript in one tab group automatically selects JavaScript in the others. This helps users who choose a language or framework once see that choice reflected everywhere. Tabs also sync with code groups that have matching titles.
To disable tab synchronization, add sync={false} to a <Tabs> component.
Disable tab sync example
Properties
The title of the tab. Short titles are easier to navigate. Tabs with matching titles synchronize their selections.
A custom ID for the tab used for anchor linking. If not provided, defaults to the same value as
title.A Font Awesome icon, Lucide icon, URL to an icon, or relative path to an icon.
For Font Awesome icons only: One of
regular, solid, light, thin, sharp-solid, duotone, brands.When
true, tabs synchronize with other tabs and code groups on the page that have matching titles. Set to false to make tabs independent.Adds a bottom border and padding to the tabs container. Useful to visually separate tabbed content from the rest of the page, especially when tabs contain content of varying lengths.