Trusted by the world’s leading companies
Overview
The React Button is a custom HTML5 button component. It has several built-in features such as support for icons, predefined styles, different button types, different button sizes, and UI customization. Toggle and repeat button functionality can be achieved by handling a click event.
Icon button
Users tend to perceive visual information more readily than text. To this end, an icon button has been designed to include an icon to the right or left of the button text or provide an icon-only button.
Action or link button
The React Button component can be used to visually represent a hyperlink with both an icon and text.
Outline button
The React Button can be styled with a border and a transparent background.
Predefined Button Styles
Several predefined styles of button are available:
- Primary
- Success
- Info
- Warning
- Danger
- Link
You can use them based on the context of your application.
Toggle button
The React button can be used as a toggle button to trigger two different actions based on its two states: pressed and released.
Repeat button
You can extend this button to act as a repeat button, which performs the click event repeatedly when it is clicked and held.
Disable button
The React disabled button is used to indicate the inactive state of a button. It can be enabled or disabled by using the disabled property.
Button size
You can choose from different button sizes, default and small, as required in your application.
UI customization
You can choose from built-in button types such as outline, block, and round buttons. Also, you can customize the React Button’s appearance.
Built-in themes
The React Button component supports built-in themes such as Bootstrap 5, Tailwind CSS, Fluent, high contrast, and more. Users can customize these built-in themes or create new themes to achieve the desired look and feel either by simply overriding SASS variables or using the Theme Studio application.
Other supported frameworks
Button component is also available in Blazor, Vue, Angular, and JavaScript frameworks. Check out the different Button platforms from the links below,
Web accessibility
- Fully supports WAI-ARIA accessibility practices to work with screen readers and assistive devices.
- Follows WAI-ARIA best practices for implementing keyboard interaction.
- Based on WCAG 2.0 standards, we designed the UI element visuals such as foreground color, background color, line spacing, text, and images.
- Supports right-to-left (RTL) text direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.
React Button Code Example
Easily get started with the React Button using a few simple lines of TSX code example as demonstrated below. Also explore our React Button Example that shows you how to render and configure a Button in React.
// Import the Button.
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import './App.css';
// To render Button.
export default class App extends React.Component {
render() {
return (<ButtonComponent>Button</ButtonComponent>);
}
}Not sure how to create your first React Button? Our tutorial videos and documentation can help.
I’d love to watch it now I’d love to read it nowDiscover Syncfusion’s Complete React Component Ecosystem
Explore over 145+ React UI components featuring established, production-ready controls and the latest pure React components built natively for modern web app development.
-
React Components
-
Pure React Components
-
SMART COMPONENTSGRIDSDATA VISUALIZATIONDROPDOWNSFILE VIEWERS & EDITORSBUTTONSINTERACTIVE CHATINPUTSNAVIGATIONFORMSNOTIFICATIONS
-
GRIDSDATA VISUALIZATIONNAVIGATIONINPUTS
Frequently Asked Questions
Why should you choose Syncfusion React Button?
- Customizable buttons with icon support to visually represent button actions.
- Built-in support for success, warning, info, and danger button styles.
Different types of buttons like outline, primary, link, and toggle.
Simple configuration and API.
- Supports all modern browsers.
- Touch-friendly and responsive UI.
- One of the best React Buttons in the market that offers feature-rich UI to interact with the software.
Extensive demos and documentation to learn quickly and get started with React Button.
Where can I find the Syncfusion React Button demo?
You can find our React Button demo here.
Can I download and utilize the Syncfusion React Button for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with Syncfusion React Button?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Here are some of their experiences.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.