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

Syncfusion customers include Visa, Apple, McDonald’s, Netflix, Starbucks, IBM, Tesla, and Schneider Electric

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.

See all 24 features

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
Read the accessibility docs

Features in depth

React Floating Action Button features in depth

Open a demo to try each one, or the docs to see the API.

Positioning: nine spots on the page or a target

Set position to a corner, an edge center, or the middle of the page. Add target to float the button inside a container, or set a custom position with CSS.

Icon with text button

Show an icon-only button with iconCss and a title tooltip, or add content for an extended button, with the icon placed left or right of the text through iconPosition.

Predefined styles and customization

Apply primary, outline, info, success, warning, or danger styles through cssClass, show text on hover, or override the documented CSS classes for your own look.

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

  1. Connect the Syncfusion MCP serverWorks in VS Code, Cursor, JetBrains, and other MCP-compatible assistants.Set up the MCP server
  2. Add Agent Skills to your projectYour agent follows Syncfusion’s recommended Floating Action Button patterns.Install Agent Skills
  3. 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" />
  );
}
Read the getting started guide

Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements

Customer reviews

Trusted by developers and teams

G2

4.5/5

From 850+ reviews of Essential Studio®

Read the reviews on G2

“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.

Oliver O.Creative and Art Direction, Small Business

“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.

Alejandro Javier V.CEO, Small Business
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.

Recent industry awards won by Syncfusion

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

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

Syncfusion React Floating Action Button

Build your React floating action buttons faster with AI

The full Floating Action Button, the MCP server, and Agent Skills, free for 30 days.

  • No credit card required
  • Free Community License for eligible teams
  • No runtime or deployment fees