
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
react-floating-btn-menu
Advanced tools
A Customizable Material floating button menu implementation made with styled-component & react.
A Material floating button menu implementation made with styled-component & react
Inspired by react-material-floating-button and react-floating-button-menu with added labels to buttons.
npm install react-floating-btn-menu --save
See the project page
You can customize opening direction, speed, and styles of each button via props. Other options will be added soon
import { FloatingMenu, MainButton, ChildButton } from 'react-floating-button-menu/build';
import MdAdd from 'react-icons/lib/md/add';
import MdClose from 'react-icons/lib/md/close';
...
<FloatingMenu slideSpeed={500} direction="left" size={{ main: 56, child: 40 }}>
<MainButton
iconResting={MdAdd}
iconActive={MdClose}
iconColor="white"
backgroundColor="black"
/>
<ChildButton
iconButton={MdAdd}
iconColor="black"
order={1}
backgroundColor="white"
label ="Add"
/>
<ChildButton
iconButton={MdAdd}
iconColor="black"
order={2}
backgroundColor="white"
label="Add another"
/>
</FloatingMenu>
...
git clone https://github.com/ifndefdeadmau5/react-floating-btn-menu.git
cd react-floating-button-menu
npm install
cd docs
npm install
npm start
Please submit issues.
FAQs
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.