×

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

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 Input

Ionic Input Inputs are necessary to collect and process user inputs securely. To be easy for users to communicate, they must follow the process and communication guidelines for each platform. It is a...

3 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 Splash Screen

The Apache Cordova plugin helps to displays and hides a splash screen during the application launch. The Ionic Splash Screen is similar to a home page on a website. The ionic splash...

2 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-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,...

2 minutes read.

Ionic Popover

The Ionic popover is a small dialog box that displays at the top of the screen. It can be used for anything, but it is usually used for a button, an action,...

4 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 Contents

Ionic Contents The content component provides an easy-to-use content area with some useful ways to control the scrollable region. There should be only one content in one view. Content, along with several other Ionic...

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 progress bar

The ionic progress bar element is a horizontal progress bar used to visualize the progression of operation and activity. You can use the <ion-progress-bar> component to create a progress bar in the ionic...

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 Colors

Ionic Colors Before we start with the actual elements available in the Ionic frame, let's understand a little bit how Ionic uses colors for different elements. Ionic Color Classes Ionic framework is a set of nine predefined...

3 minutes read.

Ionic vs Apache Cordova

Ionic Vs Apache Cordova Ionic and Cordova are two popular technology going on in the market for mobile application development. The combination of these two technologies creates a development platform that is known as...

3 minutes read.

Ionic Buttons

Ionic Buttons There are different types of buttons in the Ionic framework. These buttons are subtly animated, enhancing the user experience when using the application. Buttons are a fundamental way of interacting and navigating...

4 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 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 framework Installation

Installation of Ionic Before proceeding with the ionic application, you'll need to install node.js and NPM (Node Package Manager), the code editor, and Ionic CLI. Installation of node.js and NPM These are the primary...

5 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 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.