Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-floating-button-cpress

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-floating-button-cpress

An Awesome floating button

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

React Awesome Floating Button


An Awesome & Unique Customizable Floating Button

Powered by Lleaotech derivated from The WuuD Team

Build & Run

Install

With npm

npm install react-floating-button-cpress
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 burger iconstring#dbdbdb

Item

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

Attribution

  • Built & Developed from React JS

License

The code is available under the [MIT] license.

Keywords

FAQs

Package last updated on 30 Oct 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc