1// Install
2npm install react-floating-button
3
4
5// Usage
6import { FloatingButton, Item } from "react-floating-button";
7import downloadIcon from "./assets/DOWNLOAD.svg";
8import forwardIcon from "./assets/FORWARD.svg";
9
10<FloatingButton>
11 <Item
12 imgSrc={downloadIcon}
13 onClick={() => {
14 console.log("callback function here");
15 }}
16 />
17 <Item
18 imgSrc={forwardIcon}
19 onClick={() => {
20 console.log("callback function here");
21 }}
22 />
23</FloatingButton>;