Open In App

Blaze UI Tabs Attributes

Blaze UI is a free open source UI Toolkit that provides a great structure for building websites quickly with a scalable and maintainable foundation. All components in Blaze UI are developed mobile-first and rely solely on native browser features, not a separate library or framework. It helps us to create a scalable and responsive website fast and efficiently with a consistent style.

Blaze UI Tabs Attributes are used to create the tabs. We have four attributes to create the tab in Blaze UI. In this article, we will discuss the Tabs Attributes in Blaze UI.



Blaze UI Tabs Attributes:

Syntax:



<blaze-tabs>
  <blaze-tab type="..." header="...">
      ...
  </blaze-tab>
  ...
</blaze-tabs>

Example 1: Below example demonstrates the Blaze UI Tabs Attributes.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title> Blaze UI Tabs Attributes </title>
    <link rel="stylesheet" href=
  
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
</head>
  
<body class="u-window-box-large">
    <div class="u-centered">
        <h1 style="color: green;"
            GeeksforGeeks 
        </h1>
        <h3
            Blaze UI Tabs Attributes 
        </h3>
  
        <blaze-tabs>
            <blaze-tab type="brand" 
                 header="Tab 1" open>
                Welcome to GeeksforGeeks
            </blaze-tab>
  
            <blaze-tab type="info" 
                       header="Tab 2">
                A Computer Science portal for geeks.
            </blaze-tab>
  
            <blaze-tab header="Tab 3">
                GeeksforGeeks
            </blaze-tab>
        </blaze-tabs>
    </div>
</body>
  
</html>

Output:

Blaze UI Tabs Attributes

Example 2: Below example demonstrates the Blaze UI Tabs Attributes with a disabled tab.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title> Blaze UI Tabs Attributes </title>
    <link rel="stylesheet" href=
  
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
</head>
  
<body class="u-window-box-large">
    <div class="u-centered">
        <h1 style="color: green;"
            GeeksforGeeks 
        </h1>
        <h3
            Blaze UI Tabs Attributes 
        </h3>
  
        <blaze-tabs>
            <blaze-tab type="brand" 
                 header="Tab 1" open>
                Welcome to GeeksforGeeks
            </blaze-tab>
  
            <blaze-tab disabled 
                       header="Tab 2">
                A Computer Science portal for geeks.
            </blaze-tab>
  
            <blaze-tab header="Tab 3">
                <img src=
            </blaze-tab>
        </blaze-tabs>
    </div>
</body>
  
</html>

Output:

Blaze UI Tabs Attributes

Reference: https://www.blazeui.com/components/tabs/


Article Tags :