Socket
Socket
Sign inDemoInstall

react-floating-button

Package Overview
Dependencies
5
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-floating-button

An Awesome floating button


Version published
Weekly downloads
34
increased by17.24%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

React Awesome Floating Button

wuud react



An Awesome & Unique Customizable Floating Button

Powered by The WuuD Team

Build & Run

Demo

Live demo: https://floating-button.namokrane.works/

Screenshots

screenshot1 screenshot2 screenshot3 screenshot4

Install

With npm

npm install react-floating-button

With yarn

yarn add react-floating-button
Usage
import { FloatingButton, Item } from "react-floating-button";
import downloadIcon from "./assets/DOWNLOAD.svg";
import forwardIcon from "./assets/FORWARD.svg";

<FloatingButton>
  <Item
    imgSrc={downloadIcon}
    onClick={() => {
      console.log("callback function here");
    }}
  />
  <Item
    imgSrc={forwardIcon}
    onClick={() => {
      console.log("callback function here");
    }}
  />
</FloatingButton>;

Options

FloatingButton

PropertyDescriptionTypeDefault
rightSpecify if the button should be on the right if false the button will be at the leftbooleantrue
topSpecify if the button should be on the right if false the button will be at the leftbooleanfalse
sizeThe size used for the buttonsnumber60
backgroundColorThe backgroundColor for the main buttonstring#8f1d30
colorThe color for the main buttonstring#dbdbdb

Item

PropertyDescriptionTypeDefault
imgSrcThe icon to use on given buttonstring-
backgroundColorThe backgroundColor for the Itemstring#dbdbdb
onClickCalled when an item is clickedfunc-

Attribution

  • React Pose powered by Popmotion
  • Built & Developed from React JS

Contributing to The Project

Contributing to the project is a piece of :cake:, read the contributing guidelines. You can discuss the project using the issues section. To add a line create an issue and send a pull request, see how to send a pull request.

License

The code is available under the MIT license.

WuuD® - in code we trust -

Keywords

FAQs

Last updated on 28 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc