Tabs Component Example

This page demonstrates the usage of the Tabs component in documentation.

Basic Usage

<!DOCTYPE html>
<html>
  <head>
    <title>Hello World</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
  </body>
</html>

Synchronized Tabs

These tabs are synchronized across the page using the syncKey prop.

// JavaScript example
function greet(name) {
  return `Hello, ${name}!`;
}

console.log(greet('World'));

Another set of tabs with the same syncKey will stay in sync with the above tabs:

JavaScript is a scripting language that enables dynamic content on web pages.

With Icons

" data-astro-cid-cukmqugu="true" class="tab-item">

This tab has an information icon.