Onsen UI CSS Component Basic 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 Basic Toolbar Button is used to create the basic toolbar buttons using the below Onsen UI Toolbar Button classes.
Onsen UI CSS Component Basic Toolbar Button Classes:
- toolbar-button: This class is used to create the toolbar button.
- toolbar-button–outline: This class is used to create the outline toolbar button.
Syntax:
<button class="toolbar-button">
...
</button>
Example 1: The following example demonstrates the Onsen UI CSS Component Basic Toolbar Button.
HTML
<!DOCTYPE html>
< html >
< head >
< link rel = "stylesheet" href =
< link rel = "stylesheet" href =
< script src =
</ script >
</ head >
< body >
< center >
< h1 style = "color: green;" >
GeeksforGeeks
</ h1 >
< h3 >
Onsen UI CSS Component
Basic Toolbar Button
</ h3 >
< button class = "toolbar-button" >
GeeksforGeeks
</ button >
</ center >
</ body >
</ html >
|
Output:
Example 2: The following example demonstrates the Onsen UI CSS Component Basic Toolbar Button.
HTML
<!DOCTYPE html>
< html >
< head >
< link rel = "stylesheet" href =
< link rel = "stylesheet" href =
< script src =
</ script >
</ head >
< body >
< center >
< h1 style = "color: green;" >
GeeksforGeeks
</ h1 >
< h3 >
Onsen UI CSS Component
Basic Toolbar Button
</ h3 >
< button class="toolbar-button
toolbar-button--outline">
< i class="ion-ios-menu
list-item__icon">
</ i >
</ button >
< button class = "toolbar-button" >
GeeksforGeeks
</ button >
< button class="toolbar-button
toolbar-button--outline">
Outline GFG
</ button >
</ center >
</ body >
</ html >
|
Output:
Reference: https://onsen.io/v2/api/css.html#toolbar-button-category
Last Updated :
03 Jul, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...