![]() |
VOOZH | about |
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 learn how to include Fab using Onsen UI.
Fab or Floating Action Button is a button that floats on the screen and has a button that performs an action. Material Fabs are circular in shape and have a dark shadow under them.
Syntax:
<element-name class="class-name">...</element-name>
Component Present in Fab are:
Fab: This component is used to create a simple fab using the following classes.
Material Fab: This component is used to create a simple fab of material type using the following classes.
Fab Mini: This component is used to create a simple mini fab using the following classes.
Material Fab Mini: This component is used to create a simple mini fab of material type using the following classes.
Example 1: In this code, we will make use of the above classes to demonstrate the use of fab components.
Output:
Example 2: In this code, we will make use of the above classes to demonstrate the use of fab components.
Output: