๐Ÿ“ฆ ionic-team / ionic-docs

๐Ÿ“„ fab-button.md ยท 53 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53---
title: 'ion-fab-button'
---

import Props from '@ionic-internal/component-api/v7/fab-button/props.md';
import Events from '@ionic-internal/component-api/v7/fab-button/events.md';
import Methods from '@ionic-internal/component-api/v7/fab-button/methods.md';
import Parts from '@ionic-internal/component-api/v7/fab-button/parts.md';
import CustomProps from '@ionic-internal/component-api/v7/fab-button/custom-props.mdx';
import Slots from '@ionic-internal/component-api/v7/fab-button/slots.md';

<head>
  <title>ion-fab-button: Ionic FAB Button Icon for Primary Action</title>
  <meta
    name="description"
    content="Floating Action Buttons (FABs) represent the primary action in an app. The icons are circular and, when pressed, the button may open more related actions."
  />
</head>

import EncapsulationPill from '@components/page/api/EncapsulationPill';

<EncapsulationPill type="shadow" />

Floating Action Buttons (FABs) represent the primary action in an application. By default, they have a circular shape. When pressed, the button may open more related actions.

As the name suggests, FABs generally float over the content in a fixed position. This is achieved by wrapping the fab button in a [fab](./fab) component. If the button is not wrapped with a fab, it will scroll with the content.

For usage examples, see the [fab documentation](./fab).

## Properties

<Props />

## Events

<Events />

## Methods

<Methods />

## CSS Shadow Parts

<Parts />

## CSS Custom Properties

<CustomProps />

## Slots

<Slots />