Onsen UI CSS Component Material Toolbar Button
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
Please Login to comment...