Floating Action Button (FAB)
Floating Action Button (FAB)
A round button that floats in a corner of the screen, even while you scroll.
💡 Like a buoy bobbing on the water, it always stays in the same spot.
🤖 Say this to your AI
Add a Floating Action Button in the bottom-right corner of the screen. It should appear after scrolling down a bit, and clicking it should smoothly scroll back to the top.
The key word is ‘Floating Action Button (FAB)’. Including it helps AI understand you much more precisely.
When to use it
- For buttons that should always be clickable, like 'Back to top', 'Chat with us', or 'Write a post'
Also called: floating button, back to top button, fab, chat button, sticky button, round button in the corner