Components · Actions · Float Button
Back to Float Button typesFloat Button
Use for a persistent, always-accessible primary action anchored to a screen corner, like "back to top", "compose", or "customer support" - icon-only, with an optional badge dot and a tooltip label on hover, not a substitute for regular inline Buttons.
Properties
Size, tooltip text and badge visibility are properties of the same component, not separate buttons - change them below to check this button's style and states in the Live Preview.
Live Preview
All 3 types compared side by side, each in all 4 states. One full matrix is rendered per selected Size, at the chosen tooltip text and badge visibility.
When to use
Any persistent, always-accessible primary action anchored to a screen corner.
Component Guide
Overview
Float Button is a persistent, icon-only action anchored to a fixed corner of the screen, used for a single always-accessible action a user might need regardless of scroll position or context - distinct from an inline Button, which lives within the page's normal content flow.
When to Use
- A persistent utility action - Back to top, Compose new item.
- A support or help launcher - a customer support chat entry point.
- A single primary page action that should stay reachable while scrolling - Quick add.
When Not to Use
- Multiple competing floating actions on one screen - pick the single truly persistent action; route the rest through a menu or inline buttons.
- An action that already exists inline on the page - don't duplicate it as a float - that just adds visual noise.
- Complex, multi-step actions - a Float Button should trigger something simple or open another surface (Modal, Drawer) - it shouldn't carry the whole flow itself.
Best Practices
- Use exactly one Float Button per screen so it stays meaningfully "the" persistent action.
- Choose an icon that is universally recognizable without a label (a plus, an upward arrow, a chat bubble).
- Reserve the badge dot for a real unread/pending count, not decoration.
- Always pair it with a tooltip, since the control itself carries no visible text.
Do and Don't
Do
Exactly one floating action, so it reliably means "the persistent thing you can always do here".
Don't
A stack of floating buttons covers the content it floats over and turns a clear affordance into a second navigation bar.
Accessibility
- Icon-only, so it needs an explicit aria-label naming the action - there is no visible text to fall back on.
- The tooltip is a supplementary visual hint, not a substitute for the accessible name.
- Keeps a full-size touch target even though it's visually compact, meeting WCAG 2.2 target-size guidance.
Related Components
Primary Button, Dropdown (when the floating action opens a menu of several actions), Tooltip (its hover label), Badge (its notification dot).
{
"component": "Float Button",
"category": "Actions",
"summary": "Float Button is a persistent, icon-only action anchored to a fixed corner of the screen, used for a single always-accessible action a user might need regardless of scroll position or context - distinct from an inline Button, which lives within the page's normal content flow.",
"whenToUse": [
"A persistent utility action - Back to top, Compose new item.",
"A support or help launcher - a customer support chat entry point.",
"A single primary page action that should stay reachable while scrolling - Quick add."
],
"whenNotToUse": [
"Multiple competing floating actions on one screen - pick the single truly persistent action; route the rest through a menu or inline buttons.",
"An action that already exists inline on the page - don't duplicate it as a float - that just adds visual noise.",
"Complex, multi-step actions - a Float Button should trigger something simple or open another surface (Modal, Drawer) - it shouldn't carry the whole flow itself."
],
"bestPractices": [
"Use exactly one Float Button per screen so it stays meaningfully \"the\" persistent action.",
"Choose an icon that is universally recognizable without a label (a plus, an upward arrow, a chat bubble).",
"Reserve the badge dot for a real unread/pending count, not decoration.",
"Always pair it with a tooltip, since the control itself carries no visible text."
],
"doAndDont": {
"do": "Exactly one floating action, so it reliably means \"the persistent thing you can always do here\".",
"dont": "A stack of floating buttons covers the content it floats over and turns a clear affordance into a second navigation bar."
},
"accessibility": [
"Icon-only, so it needs an explicit aria-label naming the action - there is no visible text to fall back on.",
"The tooltip is a supplementary visual hint, not a substitute for the accessible name.",
"Keeps a full-size touch target even though it's visually compact, meeting WCAG 2.2 target-size guidance."
],
"relatedComponents": [
"Primary Button",
"Dropdown",
"Tooltip",
"Badge"
]
}