New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@izy-ui/react-floating-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@izy-ui/react-floating-button

Floating action button for React.js

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

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

IZY Floating Button

Floating action button for React.js

Table of content

  • Install npm
  • Install dependancis
  • Demo

Install npm

Install my-project with npm

  npm install my-project
  cd my-project

Install dependancis

Install my-project with npm

  npm install my-project
  cd my-project

Demo

Create index.js and Add below code segment

import IzyFloat from './components/IzyFloat';

function App() {
  const path=[
    {key: 1, title: 'Home', page: '/home', icon:'home'},
    {key: 2, title: 'Contact', page: '/contact', icon:'headphone'},
    {key: 3, title: 'Info', page: '/info', icon:'info-circle'}
  ];
  const onClick =(e)=>{
    console.log(e);
  }
  return (
    <div className="App">
      <IzyFloat 
      direction='bottom-left'
      locations={path}
      basecolor="primary"
      onClick={onClick}
       />      
    </div>
  );
}

export default App;

Environment Variables

To run this project, you will need to use following variables as a props

ParameterTypeDescriptionDefault
directiontop-left , top-right , bottom-left, bottom-rightButton placement areabottom-right
basecolorprimary , secondary , success, danger, warning, info, darkButton colorsdark

Also need to specify the button like bellow

PropertyValue(Example)Description
keyAny number ( 1 )Identify the button
titletext data( Home )Name of the button
pagelink ( /home )Add the link
Iconname of the icon ( info-circle )Name of the icon on boxicons library <box-icon name='info-circle'>

Follow the bellow example for more details

Used By

This library is used by companies:

License

Everything under the IZY component Library

MIT

Icon Library License

Copyright (c) 2015-2021 Aniket Suvarna

MIT

Authors

Appreciation

FAQs

Package last updated on 27 Dec 2022

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