A Material floating button menu implementation made with styled-component & react
Inspired by react-material-floating-button
npm install react-floating-button-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"
/>
<ChildButton
iconButton={MdAdd}
iconColor="black"
order={2}
backgroundColor="white"
/>
</FloatingMenu>
...
git clone https://github.com/ifndefdeadmau5/react-floating-button-menu.git
cd react-floating-button-menu
npm install
cd docs
npm install
npm start
Please submit issues.