Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Onsen UI CSS Component Material Toolbar Button

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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.

Onsen UI CSS Component Material Toolbar Button is used to create the material toolbar buttons using the toolbar-button–material class. To use the icons inside the button, we will use Material design icons to display icons.

Onsen UI CSS Component Material Toolbar Button Class:

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

Syntax:

<span class="toolbar-button 
    toolbar-button--material">
      ...
</span>

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

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <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 Material Toolbar Button
        </strong> <br> <br>
  
        <button class="toolbar-button 
                       toolbar-button--material">
            <i class="zmdi zmdi-account-circle"></i>
            Onsen
        </button>
    </center>
</body>
  
</html>

Output:

 

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

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <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 Material Toolbar Button
        </strong> <br> <br>
  
        <span class="toolbar-button 
                     toolbar-button--material">
            <i class="zmdi zmdi-airplane"></i>
            Airplane
        </span>
        <span class="toolbar-button 
                     toolbar-button--material">
            <i class="zmdi zmdi-audio"></i>
        </span>
        <span class="toolbar-button 
                     toolbar-button--material">
            <i class="zmdi zmdi-album"></i>
            Album
        </span>
    </center>
</body>
  
</html>

Output:

 

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


My Personal Notes arrow_drop_up
Last Updated : 22 Jun, 2022
Like Article
Save Article
Similar Reads
Related Tutorials