floating button react

Solutions on MaxInterview for floating button react by the best coders in the world

showing results for - "floating button react"
Matteo
31 Jun 2016
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>;