Open In App

Onsen UI CSS Component Toolbar with Outline Button

Last Updated : 28 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. In this article, we will see the Onsen UI CSS Component Toolbar with Outline Button.

The toolbar is a horizontal bar with some toolbar items and icons. Onsen UI CSS Component Toolbar with Outline Button is used to create the outline button inside the toolbar using toolbar-button–outline class.

Onsen UI CSS Component Toolbar with Outline Button Class:

  • toolbar-button–outline: This class is used to create the outline button inside the toolbar.

Syntax:

<div class="toolbar">
  <div class="toolbar__left">
    <span class="toolbar-button 
          toolbar-button--outline">
      ...
    </span>
  </div>
</div>

Example 1: The following example demonstrates the Onsen UI CSS Component Toolbar with Outline Button.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h2 style="color: green;">
            GeeksforGeeks
        </h2>
        <strong>
            Onsen UI CSS Component 
            Toolbar with Outline Button
        </strong> <br> <br>
  
        <div class="toolbar">
            <div class="toolbar__left">
                <span class="toolbar-button 
                      toolbar-button--outline">
                    Home
                </span>
            </div>
            <div class="toolbar__center">
                <span class="toolbar-button 
                      toolbar-button--outline">
                    About Us
                </span>
            </div>
            <div class="toolbar__right">
                <span class="toolbar-button 
                      toolbar-button--outline">
                    Logout
                </span>
            </div>
        </div>
    </center>
</body>
  
</html>


Output:

 

Example 2: The following example demonstrates the Onsen UI CSS Component Toolbar with Outline Button.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h2 style="color: green;">
            GeeksforGeeks
        </h2>
        <strong>
            Onsen UI CSS Component 
            Toolbar with Outline Button
        </strong> <br> <br>
  
        <div class="toolbar">
            <div class="toolbar__left">
                <span class="toolbar-button 
                      toolbar-button--outline">
                    <i class="ion-ios-star"></i>
                </span>
            </div>
            <div class="toolbar__center">
                <span class="toolbar-button 
                      toolbar-button--outline">
                    <i class="ion-ios-hammer"></i>
                </span>
            </div>
            <div class="toolbar__right">
                <span class="toolbar-button 
                      toolbar-button--outline">
                    <i class="zmdi zmdi-pin-account"></i>
                </span>
            </div>
        </div>
    </center>
</body>
  
</html>


Output:

 

Reference: https://onsen.io/v2/api/css.html#toolbar-category



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads