Back to Floating Action Button-guidelines

JavaScriptThe latest version of this package is: 0.17.4, Opens in new window

Tooltip javascript

This component is compatible with ESM (ES6 module) and IIFE. See documentation examples below.

To be able to install this component, please refer to the Project Setup documentation.

$ npm i @ids-js/floating-action-button@0.17.4

Table of Contents

Usage

This script is currently only for the back to top button!

Required markup

<button
  aria-label="Back to top"
  class="if floating-action-button back-to-top"
></button>

Script

<script src="../floating-action-button.iife.js"></script>
<script>
  IDSFLoatingActionButton.init();
</script>

Module

import { init as IDSFLoatingActionButton } from '@ids-js/floating-action-button';
IDSFLoatingActionButton();
Contact us, Opens in new window