dericcain / react-tiny-fab

🤖A tiny Floating Action Button for React
https://dericcain.github.io/react-tiny-fab
MIT License
256 stars 42 forks source link

Allow custom main button #72

Open didier-demange opened 3 years ago

didier-demange commented 3 years ago

Hi !

I currently use this awesome component with a "burger menu" icon, which does not look nice with the rotation. It ends up like this : image

I would love to be able to replace the main button with another one (like this one 🤩 ). If I use this as the icon for the Fab component, it rotates (which is ugly here) and cannot fire the menu opening/close on clic, and cannot be notified on menu opening.

This would imply that we could also :

What do you think of this?

didier-demange commented 3 years ago

Just for info, I can achieve nearly what I want by just setting the icon to the Hamburger component (strangely the click is handled by both the Hamburger and the Fab...), but the rotation (that cannot be canceled) still makes it ugly :-( Would be great if it could be disabled !

ivanjeremic commented 3 years ago

Any way to diable the rotation?

180107067 commented 2 years ago

you can add this to css file .rtf.open .rtf--mb > * { transform: rotate(0deg) !important; }