Floating Action Button Vue Component
Floating action buttons (FABs) are used for a promoted action. They are distinguished by a circled icon floating above the UI and have motion behaviors that include morphing, launching, and a transferring anchor point.
There are following components included:
- - main FAB element
f7-fab-buttons
- wrapper for multiple FAB buttons used as Speed Dial FABf7-fab-button
- single FAB Speed Dial buttonf7-fab-backdrop
- FAB backdrop element
Event | Description |
---|---|
<f7-fab> events | |
click | Event will be triggered after click on FAB |
<f7-fab-button> events | |
click | Event will be triggered after click on FAB Speed Dial button |
default
- child element will be inserted inside of the main FAB link<a>
element. But if the child isf7-fab-buttons
, then it will be inserted in the end of the main FAB elementlink
- child element will be inserted inside of the main FAB link<a>
elementroot
- child element will be inserted in the end of the main FAB elementtext
- child element will be inserted in the text element of the Extended FAB
With Backdrop
<f7-page>
<f7-fab-backdrop slot="fixed"></f7-fab-backdrop>
<!-- FAB Right Bottom -->
<f7-fab position="right-bottom" slot="fixed">
<f7-icon ios="f7:plus" aurora="f7:plus" md="material:add"></f7-icon>
<f7-icon ios="f7:xmark" aurora="f7:xmark" md="material:close"></f7-icon>
<f7-fab-buttons position="top">
<f7-fab-button label="Action 1">1</f7-fab-button>
<f7-fab-button label="Action 2">2</f7-fab-button>
</f7-fab-buttons>
</f7-fab>
<f7-block>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quia, quo rem beatae, delectus eligendi est saepe molestias ... voluptatibus eligendi.</p>