AIMCP Server and Agent Skills included
React Floating Action Button, now easier to build with AI
Keep the main action in reach with a button that floats above the page or a container, in nine positions, with an icon, optional text, and predefined styles. AI assistants set it up for you from the current docs.
- 4.5/5850+ G2 reviews
- 4.6/5950+ Capterra reviews
- WCAG 2.2and Section 508
- 9built-in positions
- 6predefined styles
Trusted by the world’s leading companies
Now easier with AI
Build primary actions faster with AI
Coding assistants write the button, its position, and its style from the current docs instead of guessing.
01For developers
Describe a primary action and get code that uses the documented API
The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Floating Action Button docs and recommended patterns.
AI coding assistantMCP · Syncfusion React
Add a Compose button with a pencil icon.
search_docs“React Floating Action Button icon and text” · 2 doc sections
+<FabComponent iconCss="e-icons e-edit" content="Compose"
+ />
Documented API: iconCss, content
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Float the button at the bottom left of the panel.
search_docs“React Floating Action Button position and target” · 2 doc sections
+<FabComponent iconCss="e-icons e-plus"
+ position="BottomLeft"
+ target="#panel" />
Documented API: position, target
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Use the success style for the confirm button.
search_docs“React Floating Action Button predefined styles” · 2 doc sections
+<FabComponent iconCss="e-icons e-check"
+ cssClass="e-success" />
Documented API: cssClass
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Open the new message dialog when users click the button.
search_docs“React Floating Action Button click event” · 2 doc sections
+<FabComponent iconCss="e-icons e-edit" content="Compose"
+ onClick={openComposer} />
Documented API: onClick, created
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Put the icon after the text and hide the button while editing.
search_docs“React Floating Action Button icon position and visibility” · 2 doc sections
+<FabComponent iconCss="e-icons e-edit" content="Edit"
+ iconPosition="Right"
+ visible={!isEditing} />
Documented API: iconPosition, visible
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Show the Edit label only when users hover over the button.
search_docs“React Floating Action Button show text on hover” · 2 doc sections
+<FabComponent iconCss="e-icons e-edit"
+ cssClass="fab-hover"
+content='<span class="text-container"><span class="textEle">Edit</span></span>' />
Documented API: cssClass, content
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Place the button 80 pixels above the bottom so it clears the footer.
search_docs“React Floating Action Button custom position” · 2 doc sections
+<FabComponent iconCss="e-icons e-edit"
+ cssClass="custom-position"
+ target="#targetElement" />
/* .e-fab.e-btn.custom-position { bottom: 80px; } */
Documented API: cssClass, target
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Disable the Send button until the message has a recipient.
search_docs“React Floating Action Button disabled state” · 2 doc sections
+<FabComponent content="Send" disabled={!hasRecipient} />
Documented API: disabled
ResultRendered in your app
Accessibility
Accessible to keyboard and screen reader users
The React Floating Action Button component follows WAI-ARIA practices, with keyboard access and screen reader support.
- Standards
- WCAG 2.2 and Section 508
- Keyboard
- Enter, Space, Esc, Tab
- Screen readers
- aria-label
- Layout
- Right-to-left and mobile support
Features in depth
React Floating Action Button features in depth
Open a demo to try each one, or the docs to see the API.
Events and developer-friendly APIs
Handle the click event to run the main action, and the created event for setup. The visible property shows or hides the button, and refreshPosition updates its place.
Built for primary screen actions
The button floats in front of all content, so actions such as compose, add, or chat stay in reach as users scroll on desktop and mobile layouts.
Accessible and themed
The button meets WCAG 2.2 with role and aria-label support and keyboard activation, and ships in Tailwind CSS, Bootstrap 5, Material, Fluent, and high contrast themes.
Get started
Get your first floating action button running, with or without AI
With an AI coding assistant
- Connect the Syncfusion MCP serverWorks in VS Code, Cursor, JetBrains, and other MCP-compatible assistants.Set up the MCP server
- Add Agent Skills to your projectYour agent follows Syncfusion’s recommended Floating Action Button patterns.Install Agent Skills
- Describe the floating action buttonCopy this prompt to start.
Add a Syncfusion React Floating Action Button to my mail app that floats at the bottom right with a pencil icon and the text Compose.
By hand, in three steps
1 · Install
npm install @syncfusion/ej2-react-buttons @syncfusion/ej2-tailwind3-theme --save
2 · src/App.css
@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/floating-action-button/index.css';
3 · src/App.tsx
import { FabComponent } from '@syncfusion/ej2-react-buttons';
import './App.css';
export default function App() {
return (
<FabComponent iconCss="e-icons e-edit" content="Compose" position="BottomRight" />
);
}
Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements
Customer reviews
Trusted by developers and teams
“Awesome, enough said”
Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.
“A giant framework with great pricing options”
I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.
- 75%
- lower costs
- 50%
- faster development
Customer story · Igniatek
Igniatek cuts development time 50% and costs 75% with Essential Studio®
“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”
Somnath Maji, Founder, Igniatek Consultancy
Award-winning
Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.
Complete feature list
Every floating action button feature, included in the license
- Every feature includedNo separate enterprise edition
- Royalty-freeNo runtime or deployment fees
- Weekly patchesPlus regular feature releases
- Expert supportFrom Syncfusion engineers
Showing all 24 features. Each one opens its demo or documentation.
Positioning
Content and events
Appearance
Pure React
No feature matches that search. Try another word, or open the Floating Action Button demos.
Related button components:React Speed DialReact ButtonReact Dropdown Menu
Questions and answers
React Floating Action Button FAQ
What is the React Floating Action Button?
The Syncfusion React Floating Action Button (FAB) extends the Button. It floats in front of all page content and runs the screen's primary action, such as compose or add. Explore the demos
How do I add a floating action button in React?
Install @syncfusion/ej2-react-buttons and the Tailwind 3 theme, import the theme CSS, and render FabComponent with an iconCss. The getting started section on this page shows each step. Read the getting started guide
When should I use a Speed Dial instead?
Use the Floating Action Button for one primary action. Use the Speed Dial when the floating button should open several related actions. React Speed Dial
Where can the button be positioned?
In nine built-in positions: top, middle, or bottom, each at the left, center, or right. Set position, or use CSS for a custom spot. Read about positions
Can the button float inside a container?
Yes. Set target to a container selector so the button positions itself within that element instead of the page. Read about positions
Can the button show text as well as an icon?
Yes. Set content for the text and iconCss for the icon, and use iconPosition to put the icon on the right. Read about icons
Which styles are available?
Primary, which is the default, plus outline, info, success, warning, and danger, set through cssClass. Read about styles
How do I handle clicks?
Handle the click event to run the action, and the created event for setup after the button renders. Read about events
Is the React Floating Action Button accessible?
Yes. It meets WCAG 2.2 and Section 508, sets role and aria-label, and activates with Enter or Space. Read about accessibility
Can AI coding assistants build with the React Floating Action Button?
Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Floating Action Button docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server
Is the Syncfusion React Floating Action Button free?
It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility
Resources
React Floating Action Button resources
Floating Action Button for other frameworks:AngularBlazorJavaScriptVue
More React components:Speed DialButtonDropdown MenuAll 140+ React components