AI · MCP Server and Agent Skills included

The React Button component, now easier to build with AI

Add accessible buttons with predefined styles, icons, toggle states, and themes in a few lines of code. AI assistants set them up for you from the current docs.

  • 6 button types
  • 4 predefined styles
  • 4.5/5 from 850+ G2 reviews
  • WCAG 2.2 accessible

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 and use buttons faster with AI

Coding assistants write the button setup from the current docs, and an AI button fills forms for your users.

01For developers

Describe a button 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 Button docs and patterns.

See all 20 features

AI coding assistantMCP Server · Syncfusion React

Add a primary Save button and an outline Cancel button.

search_docs“React Button types and styles” · 2 doc sections

Excerpt: imports and sample data omitted.

+<ButtonComponent isPrimary={true}>Primary</ButtonComponent>

+<ButtonComponent>Normal</ButtonComponent>

+<ButtonComponent cssClass="e-outline">Outline</ButtonComponent>

+<ButtonComponent cssClass="e-flat">Flat</ButtonComponent>

Documented API: isPrimary, cssClass

ResultRendered in your app

AI coding assistantMCP Server · Syncfusion React

Show Approve in green and Delete in red.

search_docs“React Button predefined styles” · 1 doc section

Excerpt: imports and sample data omitted.

+<ButtonComponent cssClass="e-success">Success</ButtonComponent>

+<ButtonComponent cssClass="e-warning">Warning</ButtonComponent>

+<ButtonComponent cssClass="e-danger">Danger</ButtonComponent>

+<ButtonComponent cssClass="e-info">Info</ButtonComponent>

Documented API: cssClass

ResultRendered in your app

AI coding assistantMCP Server · Syncfusion React

Add a play button that toggles between play and pause.

search_docs“React Button icons toggle” · 3 doc sections

Excerpt: imports and sample data omitted.

const [playing, setPlaying] = useState(false);

+<ButtonComponent isToggle={true} cssClass="e-flat"

+iconCss={playing ? 'e-icons e-pause' : 'e-icons e-play'}

+onClick={() => setPlaying(!playing)}>

{playing ? 'Pause' : 'Play'}</ButtonComponent>

Documented API: isToggle, iconCss, iconPosition

ResultRendered in your app

02For your users

A button that fills forms for your users

The Smart Paste button, built on the Button, reads copied text and fills the matching form fields through your own AI service.

Smart Paste

One click turns a copied email into a filled bug report: name, reporter, browser, and priority.

Performance

Light by design

Each ButtonComponent renders one native button element styled by CSS classes, so it adds little to your bundle or your DOM.

Markup
One native button element
Dependencies
Only @syncfusion/ej2-base
Styling
Plain CSS themes
Behavior
Keyboard, focus, and form submit built in
See the Button API

Features in depth

React Button features in depth

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

Button types: primary, outline, flat, and round

Set the primary style with one prop, and add outline, flat, round, or link appearances with a CSS class. Every type works with icons and themes.

Predefined styles for each action

Success, warning, danger, and info styles give each action a color that users recognize, in every built-in theme.

Icon buttons

Place an icon left or right of the text, or show an icon alone. Use the built-in icon set or your own icon font or SVG.

Toggle and repeat buttons

A toggle button keeps a pressed state for two actions, such as play and pause. A repeat button fires its click event while it is held.

Action and link buttons

Render a button as an anchor to style a hyperlink with an icon and text, so links and actions look the same.

Sizes, block buttons, and the disabled state

Choose the normal or small size, stretch a button to the full width of its container, and disable it with the disabled prop.

Themes and UI customization

Tailwind CSS, Bootstrap, Material, Fluent, Fabric, and high-contrast themes in light or dark. Change colors and shapes in Theme Studio or with CSS.

Accessible and right-to-left

Follows WAI-ARIA button practices and WCAG 2.2, with keyboard support, screen reader labels, and right-to-left layouts.

Get started

Get your first 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 Button patterns.Install Agent Skills
  3. Describe the buttonsCopy this prompt to start.

    Add Syncfusion React Buttons to my form: a primary Save button, an outline Cancel button, and a red Delete button with a trash icon.

By hand, in three steps

1 · Install

npm install @syncfusion/ej2-react-buttons --save

2 · src/App.css

@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/button/index.css';

3 · src/App.tsx

import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import './App.css';

export default function App() {
  return (
    <ButtonComponent isPrimary={true} onClick={() => alert('Saved')}>
      Save
    </ButtonComponent>
  );
}
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.

Syncfusion awards: 2026 Devies Award Winner, Capterra Shortlist 2026, Software Advice FrontRunners 2026, SaaS Awards 2026 Finalist, Hosting Advice Developers' Choice, A.I. Awards 2025 Finalist, Visual Studio Magazine Readers' Choice 2025 Gold, G2 Best Software 2025, ComponentSource Top 10 Publisher 2025, and TrustRadius Tech Cares 2025

Complete feature list

Every 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:Button GroupProgress ButtonSplit ButtonDropdown MenuToggle Switch

Questions and answers

React Button FAQ

What is the React Button component?

It is a button for React apps with built-in types, predefined styles, icons, toggle and repeat behavior, two sizes, and themes. It renders a standard HTML button, so it works with forms and assistive technology. Explore the demo

How do I add a button in React?

Install @syncfusion/ej2-react-buttons from npm, import the theme CSS, and render ButtonComponent with your label and an onClick handler. Read the getting started guide

Which button types and styles are available?

Primary, normal, outline, flat, round, and link types, plus success, warning, danger, and info styles. Combine them with icons and either size. See the types and styles

Can AI coding assistants build with the React Button?

Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Button docs and patterns, so the code they write uses the documented API. Set up the MCP server

How do I add an icon to a button?

Set iconCss to an icon class, and iconPosition to Left or Right. Leave out the label for an icon-only button. Read about icon buttons

How do I make a toggle button?

Set isToggle to true. Each click switches the button between its active and normal states, which suits options such as bold or mute. Read about button types

How do I change a button’s size?

Add the e-small class through cssClass for a compact button. Read about button styles

Can a button show only an icon?

Yes. Set iconCss without content, and add e-round for a circular icon button. Give it an aria-label so screen readers announce it. Read about icon buttons

How do I make a full-width or disabled button?

Add the e-block class to stretch a button across its container, and set disabled to turn it off. Create a block button

Is the React Button accessible?

Yes. It follows WAI-ARIA button practices and WCAG 2.2, with keyboard support, screen reader labels, high-contrast themes, and right-to-left layouts. Read about accessibility

Is Syncfusion React 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 Button

Build your React buttons faster with AI

Every React component, 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