Search docs/

ion-fab-list

The ion-fab-list element is a container for multiple fab buttons. This collection of fab buttons contains actions related to the main fab button and is flung out on click. To specify what side the buttons should appear on, set the side property to 'start', 'end', 'top', 'bottom'

Usage

<ion-fab vertical="bottom" horizontal="end">
  <ion-fab-button>Share</ion-fab-button>

  <ion-fab-list side="top">
    <ion-fab-button>Facebook</ion-fab-button>
    <ion-fab-button>Twitter</ion-fab-button>
    <ion-fab-button>Youtube</ion-fab-button>
  </ion-fab-list>

  <ion-fab-list side="start">
    <ion-fab-button>Vimeo</ion-fab-button>
  </ion-fab-list>

</ion-fab>
<ion-fab vertical="bottom" horizontal="end">
  <ion-fab-button>Share</ion-fab-button>

  <ion-fab-list side="top">
    <ion-fab-button>Facebook</ion-fab-button>
    <ion-fab-button>Twitter</ion-fab-button>
    <ion-fab-button>Youtube</ion-fab-button>
  </ion-fab-list>

  <ion-fab-list side="start">
    <ion-fab-button>Vimeo</ion-fab-button>
  </ion-fab-list>

</ion-fab>
import React from 'react';
import { IonFab, IonFabButton, IonFabList, IonContent, IonIcon } from '@ionic/react';

export const FabListExample: React.FC = () => (
  <IonContent>
    <IonFab vertical="bottom" horizontal="end">
      <IonFabButton>
        <IonIcon icon="share" />
      </IonFabButton>

      <IonFabList side="top">
        <IonFabButton color="primary">
          <IonIcon icon="logo-facebook" />
        </IonFabButton>
        <IonFabButton color="primary">
          <IonIcon icon="logo-twitter" />
        </IonFabButton>
        <IonFabButton color="primary">
          <IonIcon icon="logo-youtube" />
        </IonFabButton>
      </IonFabList>

      <IonFabList side="start">
        <IonFabButton color="primary">
          <IonIcon icon="logo-vimeo" />
        </IonFabButton>
      </IonFabList>
    </IonFab>
  </IonContent>
);
<template>
  <ion-fab vertical="bottom" horizontal="end">
    <ion-fab-button>Share</ion-fab-button>

    <ion-fab-list side="top">
      <ion-fab-button>Facebook</ion-fab-button>
      <ion-fab-button>Twitter</ion-fab-button>
      <ion-fab-button>Youtube</ion-fab-button>
    </ion-fab-list>

    <ion-fab-list side="start">
      <ion-fab-button>Vimeo</ion-fab-button>
    </ion-fab-list>

  </ion-fab>
</template>

Properties

activated

Description

If true, the fab list will show all fab buttons in the list.

Attributeactivated
Typeboolean
Defaultfalse

side

Description

The side the fab list will show on relative to the main fab button.

Attributeside
Type"bottom" | "end" | "start" | "top"
Default'bottom'