Floating Action Button React 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:

    • / F7Fab - main FAB element
    • FabButtons / F7FabButtons - wrapper for multiple FAB buttons used as Speed Dial FAB
    • FabButton / F7FabButton - single FAB Speed Dial button
    • FabBackdrop / F7FabBackdrop - FAB backdrop element
    EventDescription
    <Fab> events
    clickEvent will be triggered after click on FAB
    <FabButton> events
    clickEvent 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 is FabButtons, then it will be inserted in the end of the main FAB element
    • link - child element will be inserted inside of the main FAB link <a> element
    • root - child element will be inserted in the end of the main FAB element
    • - child element will be inserted in the text element of the Extended FAB

    With Backdrop

    1. export default () => (
    2. <Page>
    3. <Navbar title="FAB Backdrop" />
    4. {/* FAB Backdrop */}
    5. {/* FAB Right Bottom */}
    6. <Fab position="right-bottom" slot="fixed">
    7. <Icon ios="f7:plus" aurora="f7:plus" md="material:add"></Icon>
    8. <Icon ios="f7:xmark" aurora="f7:xmark" md="material:close"></Icon>
    9. <FabButtons position="top">
    10. <FabButton label="Action 1">1</FabButton>
    11. <FabButton label="Action 2">2</FabButton>
    12. </FabButtons>
    13. </Fab>
    14. <Block>
    15. <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quia, quo rem beatae, delectus eligendi est saepe molestias ... voluptatibus eligendi.</p>
    16. </Block>
    17. )