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 component. If the button is not wrapped with a fab, it will scroll with the content.
If true, the fab button will be show a close icon.
Attribute
activated
Type
boolean
Default
false
closeIcon
Description
The icon name to use for the close icon. This will appear when the fab button is pressed. Only applies if it is the main button inside of a fab containing a fab list.
Attribute
close-icon
Type
string
Default
close
color
Description
The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.
If true, the user cannot interact with the fab button.
Attribute
disabled
Type
boolean
Default
false
download
Description
This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want).
Attribute
download
Type
string | undefined
Default
undefined
form
Description
The HTML form element or form element id. Used to submit a form when the button is not a child of the form.
This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attribute
form
Type
HTMLFormElement | string | undefined
Default
undefined
href
Description
Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
Attribute
href
Type
string | undefined
Default
undefined
mode
Description
The mode determines which platform styles to use.
This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attribute
mode
Type
"ios" | "md"
Default
undefined
rel
Description
Specifies the relationship of the target object to the link object. The value is a space-separated list of link types.
Attribute
rel
Type
string | undefined
Default
undefined
routerAnimation
Description
When using a router, it specifies the transition animation when navigating to another page using href.