×

Ionic-fab Button

Ionic-fab Button

The Ionic FABs (Floating Action Buttons) are standard material design compounds. It is a container element that contains one or more fab buttons. They are required to be placed in a fixed position, which means they don’t scroll with the content. Fab is necessary to have one main fab button. They are designed as a circle, which represents a promoted action. It can also contain a fab-list in the button. When you click on the main fab button, it shows many related activities. The fab container can contain various types of fab-list elements with different side values such as top, bottom, left, and right. If you want to have a button list at the top of the main button, then you should use side="top".

It represents the primary action in an ionic application. Fab is not only achieved through the use of a <ion-fab-button>Fab Button</ion-fab-button> component. It’s required to be wrapped with the <ion-fab> element to be fixed over the content. If you are not wrapped FAB Button with <ion-fab> component, then it will behave like a normal button and scrolling with the content. Fab buttons can accept all the colors, and it also has a default size and the mini size. The <ion-fab-button> component is used inside the <ion-fab> component.

Example: This example helps you to understand how you can use the <ion-fab-button> component in an ionic application. Here you can add the icons and use the different colors for these fab buttons.

 
   
  Ionic FAB Button 
   
  
 
  
   
  
  
  
  
  
  
  
  
   
  
  
  
  
  
  
  
  
  
  
  
   
  
  
  
  
  
  
   
  

Output: After executing this code, you will get the output, which is shown below. Here, you can create the fab buttons in the ionic application at different positions such as top-starttop-endbottom-startbottom-end, and center position.

Ionic-fab Button

Ion-Fab-list

The ion-fab-list component is a container, which contains multiple fab buttons. This collection of fab buttons includes activities related to the main fab button, and it flung out when you click on the fab button. To determine on which side the button will appear, you can set the side property to 'start', 'end', 'top', and 'bottom'. The <ion-fab-list> component is used inside the <ion-fab-button>.

Example: This example helps you to understand how you can use the ion-fab-list component inside the ion-fab-button. Here, you are going to create a list of various types of fab buttons. The fab buttons have different kinds of icons like as: Share, Instagram, Facebook, Twitter, Whatsapp, Google, and many others. It contains the action related to the main fab button and flung out when you click on the main fab button.

 
   
  Ionic FAB Button 
   
  
 
  
  
   
  
  
  
  
  
   
  
  
  
  
  
  
  
   
  
  

Output: After executing this code, you will get the output, as shown below.

Ion-Fab-list

When you click on the share button, you will get the below screen which shows many options.

Ion-Fab-list

Related Topics

Ionic Radio

Ionic Radio The radio button is the type of input component that has a Boolean value. The Ionic radio button has a different pattern on every platform, as well as other Ionic components....

2 minutes read.

Ionic vs Xamarin

Ionic vs Xamarin Ionic and Xamarin are both the most popular frameworks used to develop a hybrid mobile application. Both frameworks are used in large enterprises by the developers. Here, we will discuss the...

4 minutes read.

Ionic Range

The Range slider lets users choose from a range of values by moving the slider knob. You can accept two knobs, but by default, one-knob controls the range value. Range labels You can put down on...

2 minutes read.

Ionic Loading

The ionic loader is an overlay that can be used to indicate activity, the user interaction while blocking. The ionic loader shows on the top of the app content, and it can...

5 minutes read.

Ionic Camera

Hybrid mobile applications can make very quickly, but sometimes it becomes a challenge to get the features that access the hardware such as GPS, storage, file storage, cameras, and networks. Cordova offers plugins...

4 minutes read.

Ionic Toolbar

A toolbar is a general toolbar that can be used in an application such as a header, sub-header, footer, or even a sub-footer. Because the ion-toolbar is flexbox-dependent, no matter how many toolbars...

3 minutes read.

Difference between Ionic 4 and Ionic 3

The ionic framework is an open-source platform that is used to develop mobile applications. It is also used to build android applications, desktop applications, iOS, and web applications using web technologies like HTML,...

5 minutes read.

Ionic Toggle

The toggle is the same as the HTML checkbox entry, but it looks different and easier to use on a touchscreen device. It is an input component that holds the boolean value. Toggle...

2 minutes read.

Ionic Alert

Ionic Alert An Alert is a dialog box that presents the users with important information, or it stores the data from the user by using the inputs. Alerts are a great way to provide...

5 minutes read.

Ionic Infinite Scroll

The infinite scroll permits you to perform an action when the user scrolls a particular content from the bottom or top of the page. When you display the large collection of data...

3 minutes read.

Ionic vs React Native

Ionic Vs React Native Ionic and React Native are both common framework which is used to develop mobile applications. Here, you will know about the popular differences between the ionic and the React Native. Ionic Ionic...

3 minutes read.

Ionic Refresher

Refresher means updating the currently showing page so that the user can see the latest view. It is also known as re-loading in web technology. It provides a pull- to-refresh feature on a...

4 minutes read.

Features of Ionic Framework

The Ionic Framework is based on the AngularJS framework that permits a programmer to use a combination of many other programming languages, like HTML5, CSS, and JavaScript. Some of the...

4 minutes read.

Ionic vs PhoneGap

Ionic Vs PhoneGap Ionic and PhoneGap are both used to develop the mobile application. Both Frameworks are used in large enterprises by the developers. Here, we are going to compare the important differences between ionic...

3 minutes read.

Ionic Select

The Ion Selection component is similar to the HTML <select> element. However, the Ionic Selection component makes it easy for users to categorize and choose the preferred option or other options. You must...

3 minutes read.

Ionic Tabs

The ionic tabs mostly used for mobile navigation. It means that tabs are placed at the top of the display on android devices, while at the bottom on IOS. It does not provide...

2 minutes read.

Ionic Spinner

The ionic spinner component provides the various SVG (Scalable Vector Graphic) spinners. Ionic spinners are the visual indicators that display the app which is loading content or performing another process that the user...

5 minutes read.

Ionic Date Time

Ionic Date Time The DateTime component is used to display an interface that makes it simple for users to select dates and times. Tapping on <ion-datetime> will display a slider up from the...

4 minutes read.

Ionic Editors

Editors are software programs that permit the users to create and edit the text files. In the development field, editors are usually used to create the source code editors that includes many specific...

3 minutes read.

Ionic Reorder

The Ionic offers the <ion-reorder> component to reordering features. Ionic reorder component adds the Drag and Drop feature to list items, in which the user can change the order of the items. Reorder...

3 minutes read.