/syncfusion-react:syncfusion-react-buttonsfrom Syncfusion React UI Components
Comprehensive guide for implementing Syncfusion React button components including Button, ButtonGroup, DropDownButton, Floating Action Button, ProgressButton, SplitButton, Speed Dial, Switch, RadioButton, and Chips. Use this when adding styled buttons, toggle behavior, icon support, grouped selections, dropdown action menus, programmatic control floating primary actions, expandable speed dial menus, compact interactive elements with avatars and drag-and-drop, or single/multiple selection capabilities to a React application.
Ships in Syncfusion React UI Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
📌 Agent Notice:
📄 Read:links in Navigation Guide sections are reference pointers for passive file reading only. They do not imply automatic tool invocation, command execution, or action chaining.
The Syncfusion ButtonComponent is a graphical user interface element that triggers an action on click. It supports text, icons, or both, with extensive styling, accessibility, and behavioral options.
📄 Read: references/button-getting-started.md
📄 Read: references/button-types-and-styles.md
📄 Read: references/button-how-to.md
📄 Read: references/button-style-and-appearance.md
📄 Read: references/button-accessibility.md
📄 Read: references/button-api.md
⚠️ Run the following command manually in your terminal. Do not execute automatically.
# Run in your terminal
npm install @syncfusion/ej2-react-buttons --save
// src/App.css
// @import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
// @import "../node_modules/@syncfusion/ej2-react-buttons/styles/tailwind3.css";
import { enableRipple } from '@syncfusion/ej2-base';
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import './App.css';
enableRipple(true);
function App() {
return (
<div>
<ButtonComponent>Default</ButtonComponent>
<ButtonComponent cssClass='e-primary'>Primary</ButtonComponent>
<ButtonComponent cssClass='e-success'>Success</ButtonComponent>
</div>
);
}
export default App;
<ButtonComponent cssClass='e-primary'>Save</ButtonComponent>
<ButtonComponent cssClass='e-danger'>Delete</ButtonComponent>
<ButtonComponent cssClass='e-flat'>Flat</ButtonComponent>
<ButtonComponent cssClass='e-outline'>Outline</ButtonComponent>
<ButtonComponent iconCss='e-icons e-save'>Save</ButtonComponent>
<ButtonComponent iconCss='e-icons e-delete' iconPosition='Right'>Delete</ButtonComponent>
const [active, setActive] = React.useState(false);
<ButtonComponent isToggle={true} cssClass='e-flat'
onClick={() => setActive(!active)}>
{active ? 'Pause' : 'Play'}
</ButtonComponent>
<ButtonComponent disabled={true}>Disabled</ButtonComponent>
<ButtonComponent cssClass='e-block e-primary'>Full Width</ButtonComponent>
The ButtonGroup is a pure CSS component that groups a series of buttons together in a horizontal (default) or vertical layout. It supports normal button behavior as well as radio-type (single selection) and checkbox-type (multiple selection) behaviors. Buttons can be nested with DropDownButton and SplitButton components.
📄 Read: references/buttongroup-getting-started.md
📄 Read: references/buttongroup-types-and-styles.md
e-outline)e-primary, e-success, e-info, e-warning, e-danger)📄 Read: references/buttongroup-selection-and-nesting.md
📄 Read: references/buttongroup-how-to.md
iconCss)e-round-corner)e-vertical)createButtonGroup utility function📄 Read: references/buttongroup-style-and-appearance.md
📄 Read: references/buttongroup-accessibility.md
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import './App.css';
function App() {
return (
<div className='e-btn-group'>
<ButtonComponent>HTML</ButtonComponent>
<ButtonComponent>CSS</ButtonComponent>
<ButtonComponent>Javascript</ButtonComponent>
</div>
);
}
export default App;
Required CSS imports in src/App.css:
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-popups/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/tailwind3.css";
<div className='e-btn-group'>
<input type="radio" id="radioleft" name="align" value="left" />
<label className="e-btn" htmlFor="radioleft">Left</label>
<input type="radio" id="radiomiddle" name="align" value="middle" />
<label className="e-btn" htmlFor="radiomiddle">Center</label>
<input type="radio" id="radioright" name="align" value="right" />
<label className="e-btn" htmlFor="radioright">Right</label>
</div>
<div className='e-btn-group'>
<input type="checkbox" id="checkbold" name="font" value="bold" />
<label className="e-btn" htmlFor="checkbold">Bold</label>
<input type="checkbox" id="checkitalic" name="font" value="italic" />
<label className="e-btn" htmlFor="checkitalic">Italic</label>
<input type="checkbox" id="checkline" name="font" value="underline" />
<label className="e-btn" htmlFor="checkline">Underline</label>
</div>
<div className='e-btn-group e-vertical'>
<ButtonComponent>HTML</ButtonComponent>
<ButtonComponent>CSS</ButtonComponent>
<ButtonComponent>Javascript</ButtonComponent>
</div>
| Prop / Class | Component | Description |
|---|---|---|
cssClass | ButtonComponent | Apply style classes (e-outline, e-primary, e-success, e-info, e-warning, e-danger) |
iconCss | ButtonComponent | CSS class(es) for button icon |
disabled | ButtonComponent | Disables the button |
isPrimary | ButtonComponent | Marks button as primary |
e-btn-group | container div | Required wrapper class for ButtonGroup |
e-outline | container div + buttons | Outline style for the group |
e-round-corner | container div | Rounded corners for the group |
e-vertical | container div | Vertical layout |
e-rtl | container div | Right-to-left layout |
The Syncfusion DropDownButtonComponent renders a button that toggles a contextual popup menu with a list of action items. It supports icons, separators, templates, animations, accessibility, and extensive customization.
📄 Read: references/dropdownbutton-getting-started.md
items📄 Read: references/dropdownbutton-popup-items.md
iconCssurl on itemsbeforeItemRender📄 Read: references/dropdownbutton-icons-and-layout.md
iconCss and iconPositione-caret-hidee-vertical📄 Read: references/dropdownbutton-appearance-and-styling.md
e-round-cornere-caret-hidepopupWidth📄 Read: references/dropdownbutton-events-and-interactivity.md
select event on item clickbeforeOpen / beforeClose for dynamic caret iconopen event for custom popup positioningdisabledenableRtladdItems / removeItems methodstoggle method for programmatic open/close📄 Read: references/dropdownbutton-item-template.md
itemTemplate property for custom item rendering📄 Read: references/dropdownbutton-listview-integration.md
target property with a ListView element📄 Read: references/dropdownbutton-accessibility.md
role, aria-haspopup, aria-expanded)📄 Read: references/dropdownbutton-api.md
items, cssClass, iconCss, iconPosition, disabled, enableRtl, animationSettings, popupWidth, target, itemTemplate, content, closeActionEvents, createPopupOnClick, enableHtmlSanitizer, enablePersistence, localebeforeClose, beforeOpen, beforeItemRender, close, open, select, createdaddItems, removeItems, toggle, focusIn, destroy, getPersistDataItemModel, MenuEventArgs, OpenCloseMenuEventArgs, BeforeOpenCloseMenuEventArgsimport { DropDownButtonComponent, ItemModel } from '@syncfusion/ej2-react-splitbuttons';
import { enableRipple } from '@syncfusion/ej2-base';
import * as React from 'react';
import './App.css';
enableRipple(true);
function App() {
const items: ItemModel[] = [
{ text: 'Cut' },
{ text: 'Copy' },
{ text: 'Paste' },
];
return (
<DropDownButtonComponent items={items}>
Clipboard
</DropDownButtonComponent>
);
}
export default App;
const items: ItemModel[] = [
{ text: 'Edit', iconCss: 'ddb-icons e-edit' },
{ text: 'Delete', iconCss: 'ddb-icons e-delete' },
];
<DropDownButtonComponent items={items} iconCss="ddb-icons e-message">
Message
</DropDownButtonComponent>
const items: ItemModel[] = [
{ text: 'Cut', iconCss: 'e-db-icons e-cut' },
{ text: 'Copy', iconCss: 'e-icons e-copy' },
{ separator: true },
{ text: 'Font', iconCss: 'e-db-icons e-font' },
];
import { MenuEventArgs } from '@syncfusion/ej2-react-splitbuttons';
function onSelect(args: MenuEventArgs) {
console.log('Selected:', args.item.text);
}
<DropDownButtonComponent items={items} select={onSelect}>
Actions
</DropDownButtonComponent>
The Syncfusion React FabComponent is a circular button that floats above the UI and represents the primary action in an application. It supports flexible positioning, icon + text content, predefined styles, full accessibility compliance, and CSS customization.
Package: @syncfusion/ej2-react-buttons
📄 Read: references/floating-action-button-getting-started.md
@syncfusion/ej2-react-buttonsFabComponent setuptarget to position relative to a container📄 Read: references/floating-action-button-icons.md
iconCss prop for icon-only FABcontent prop for text labeliconPosition for icon-left vs icon-right layout📄 Read: references/floating-action-button-positions.md
position prop with all nine predefined values (TopLeft → BottomRight)target prop to scope FAB to a containercssClass📄 Read: references/floating-action-button-styles.md
cssClass values: e-primary, e-outline, e-info, e-success, e-warning, e-danger📄 Read: references/floating-action-button-events.md
onClick event for click handlingcreated event for post-render initialization📄 Read: references/floating-action-button-accessibility.md
aria-label, aria-disabled, role="button")enableRtl📄 Read: references/floating-action-button-api.md
content, cssClass, disabled, enableHtmlSanitizer, enablePersistence, enableRtl, iconCss, iconPosition, isPrimary, isToggle, position, target, visibleclick(), destroy(), focusIn(), getPersistData(), refreshPosition()created, onClick⚠️ Run the following command manually in your terminal. Do not execute automatically.
# Run in your terminal
npm install @syncfusion/ej2-react-buttons --save
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css";
import { FabComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import './App.css';
function App() {
return (
<div>
<div id="targetElement" style={{ position: 'relative', minHeight: '350px', border: '1px solid' }}></div>
<FabComponent id="fab" content="Add" target="#targetElement" />
</div>
);
}
export default App;
import { FabComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
function App() {
return (
<div>
<div id="target" style={{ position: 'relative', minHeight: '350px' }}></div>
<FabComponent id="fab" iconCss="e-icons e-edit" target="#target" />
</div>
);
}
export default App;
import { FabComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
function App() {
function handleClick(): void {
alert('FAB clicked!');
}
return (
<div>
<div id="target" style={{ position: 'relative', minHeight: '350px' }}></div>
<FabComponent id="fab" iconCss="e-icons e-edit" content="Edit" onClick={handleClick} target="#target" />
</div>
);
}
export default App;
import { FabComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
function App() {
return (
<div>
<div id="target" style={{ position: 'relative', minHeight: '350px' }}></div>
<FabComponent id="fab" iconCss="e-icons e-delete" cssClass="e-danger" target="#target" />
</div>
);
}
export default App;
| Prop | Type | Default | Purpose |
|---|---|---|---|
iconCss | string | '' | CSS class for the FAB icon |
content | string | '' | Text label displayed on/beside the FAB |
iconPosition | 'Left' | 'Right' | 'Left' | Icon placement relative to text |
position | FabPosition | 'BottomRight' | Predefined position within target/viewport |
target | string | HTMLElement | '' | Container element selector for FAB scoping |
cssClass | string | '' | Custom CSS class(es) for styling |
disabled | boolean | false | Disables the FAB |
visible | boolean | true | Shows or hides the FAB |
isPrimary | boolean | true | Applies primary styling |
enableRtl | boolean | false | Right-to-left rendering |
enableHtmlSanitizer | boolean | true | Sanitizes HTML in content |
The Syncfusion SpeedDialComponent is a floating action button (FAB) that reveals a set of contextual action items when clicked or hovered. It supports Linear and Radial display modes, flexible positioning, templates, animations, modal overlay, and full accessibility.
📄 Read: references/speeddial-getting-started.md
📄 Read: references/speeddial-items.md
📄 Read: references/speeddial-display-modes.md
📄 Read: references/speeddial-radial-menu.md
📄 Read: references/speeddial-positions.md
📄 Read: references/speeddial-styles.md
📄 Read: references/speeddial-template.md
📄 Read: references/speeddial-events.md
📄 Read: references/speeddial-modal.md
📄 Read: references/speeddial-accessibility.md
📄 Read: references/speeddial-api.md
⚠️ Run the following command manually in your terminal. Do not execute automatically.
# Run in your terminal
npm install @syncfusion/ej2-react-buttons --save
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css";
import { SpeedDialComponent, SpeedDialItemModel } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import './App.css';
function App() {
const items: SpeedDialItemModel[] = [
{ text: 'Cut', iconCss: 'e-icons e-cut' },
{ text: 'Copy', iconCss: 'e-icons e-copy' },
{ text: 'Paste', iconCss: 'e-icons e-paste' }
];
return (
<div id="targetElement" style={{ position: 'relative', minHeight: '350px', border: '1px solid' }}>
<SpeedDialComponent
id='speeddial'
content='Edit'
openIconCss='e-icons e-edit'
closeIconCss='e-icons e-close'
items={items}
target="#targetElement"
/>
</div>
);
}
export default App;
const items: SpeedDialItemModel[] = [
{ iconCss: 'e-icons e-cut', title: 'Cut' },
{ iconCss: 'e-icons e-copy', title: 'Copy' },
{ iconCss: 'e-icons e-paste', title: 'Paste' }
];
<SpeedDialComponent id='speeddial' openIconCss='e-icons e-edit' items={items} target="#targetElement" />
import { RadialSettingsModel } from '@syncfusion/ej2-react-buttons';
const radialSettings: RadialSettingsModel = { direction: 'AntiClockwise', offset: '80px' };
<SpeedDialComponent id='speeddial' openIconCss='e-icons e-edit' items={items}
mode='Radial' radialSettings={radialSettings} target="#targetElement" />
import { SpeedDialItemEventArgs } from '@syncfusion/ej2-react-buttons';
function itemClick(args: SpeedDialItemEventArgs) {
console.log('Clicked:', args.item.text);
}
<SpeedDialComponent id='speeddial' items={items} content='Edit' clicked={itemClick} target="#targetElement" />
<SpeedDialComponent id='speeddial' items={items} openIconCss='e-icons e-edit'
modal={true} target="#targetElement" />
let speeddialRef: SpeedDialComponent;
<SpeedDialComponent id='speeddial' items={items} openIconCss='e-icons e-edit'
target="#targetElement" ref={scope => { speeddialRef = scope; }} />
// Open: speeddialRef.show();
// Close: speeddialRef.hide();
The ProgressButtonComponent from @syncfusion/ej2-react-splitbuttons provides a button that
visualises the progression of a background operation — complete with an animated spinner, a
background progress bar fill, and content/style hooks at every stage of the operation.
| Task | Read |
|---|---|
| Install package and first render | references/getting-started.md |
| Spinner position/size/template + progress bar + animations + step/percent/start/stop | references/spinner-and-progress.md |
| CSS classes, theming, Theme Studio | references/style-and-appearance.md |
| ARIA attributes, keyboard shortcuts, screen-reader compliance | references/accessibility.md |
| Enable the background progress fill | references/how-to-enable-progress-in-button.md |
| Hide the spinner (show only progress bar) | references/how-to-hide-spinner.md |
| Vertical, top, or reverse progress fill | references/how-to-customize-progress-using-cssclass.md |
| Change button text / CSS class while progress runs | references/how-to-change-text-content-and-styles-of-the-progressbutton-during-progress.md |
| Trace / handle lifecycle events | references/how-to-trace-events-of-progress-button.md |
| Full API reference (all props, events, methods, types) | references/api.md |
npm install @syncfusion/ej2-react-splitbuttons --save
// src/App.tsx
import { ProgressButtonComponent } from '@syncfusion/ej2-react-splitbuttons';
import './App.css';
function App() {
return <ProgressButtonComponent content="Submit" />;
}
export default App;
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-popups/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/tailwind3.css";
<ProgressButtonComponent
content="Upload"
enableProgress={true}
cssClass="e-hide-spinner"
duration={4000}
/>
import { SpinSettingsModel } from '@syncfusion/ej2-react-splitbuttons';
const spinSettings: SpinSettingsModel = {
position: 'Right',
width: 20,
template: '<div class="my-spinner"></div>'
};
<ProgressButtonComponent content="Submit" spinSettings={spinSettings} />
import { AnimationSettingsModel, SpinSettingsModel } from '@syncfusion/ej2-react-splitbuttons';
const spinSettings: SpinSettingsModel = { position: 'Center' };
const animationSettings: AnimationSettingsModel = {
effect: 'SlideLeft',
duration: 500,
easing: 'linear'
};
<ProgressButtonComponent
content="Slide Left"
enableProgress={true}
spinSettings={spinSettings}
animationSettings={animationSettings}
/>
let progressBtn: ProgressButtonComponent;
<ProgressButtonComponent
content="Download"
enableProgress={true}
duration={4000}
cssClass="e-hide-spinner"
ref={(scope) => { progressBtn = scope as ProgressButtonComponent; }}
/>
// Pause: progressBtn.stop();
// Resume: progressBtn.start();
// Finish: progressBtn.progressComplete();
<ProgressButtonComponent
content="Progress"
enableProgress={true}
begin={(args) => console.log('started', args.percent)}
progress={(args) => console.log('progress', args.percent)}
end={(args) => console.log('done', args.percent)}
fail={(args) => console.log('failed', args)}
/>
| File | Contents |
|---|---|
references/getting-started.md | Installation, CSS imports, first component |
references/spinner-and-progress.md | Spinner config, animation, step, dynamic %, start/stop |
references/style-and-appearance.md | CSS class table, theming |
references/accessibility.md | ARIA, keyboard nav, compliance matrix |
references/how-to-enable-progress-in-button.md | enableProgress how-to |
references/how-to-hide-spinner.md | e-hide-spinner how-to |
references/how-to-customize-progress-using-cssclass.md | Vertical / top / reverse fill |
references/how-to-change-text-content-and-styles-of-the-progressbutton-during-progress.md | Dynamic text/style during progress |
references/how-to-trace-events-of-progress-button.md | Event tracing example |
references/api.md | Full API: props, events, methods, types |
The Syncfusion SwitchComponent is a graphical toggle control that switches between checked (on) and unchecked (off) states. It is part of the @syncfusion/ej2-react-buttons package and supports text labels, size variants, disabled state, form submission, RTL, programmatic control, and full CSS customization.
📄 Read: references/getting-started.md
SwitchComponent rendering📄 Read: references/features.md
onLabel / offLabel text labelsdisabled propertyname and value for form submissioncssClass for custom stylingenableRtl for right-to-left supportenablePersistence to persist state across reloadshtmlAttributes for additional HTML attributeslocale for localization📄 Read: references/events-and-methods.md
change event and ChangeEventArgsbeforeChange event to cancel state transitionscreated lifecycle eventtoggle() method for programmatic state controlclick(), focusIn(), and destroy() methodsref to call methods imperatively📄 Read: references/how-to.md
beforeChangetoggle() method📄 Read: references/style-and-appearance.md
📄 Read: references/api.md
ChangeEventArgs and BeforeChangeEventArgsimport { SwitchComponent } from '@syncfusion/ej2-react-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
import '@syncfusion/ej2-base/styles/tailwind3.css';
import '@syncfusion/ej2-buttons/styles/tailwind3.css';
enableRipple(true);
function App() {
return <SwitchComponent checked={true} />;
}
export default App;
Install the package first:
npm install @syncfusion/ej2-react-buttons --save
<SwitchComponent onLabel="ON" offLabel="OFF" checked={true} />
Note: Text labels are not supported in Material themes.
import { ChangeEventArgs, SwitchComponent } from '@syncfusion/ej2-react-buttons';
function App() {
function onChange(args: ChangeEventArgs) {
console.log('Switch is now:', args.checked);
}
return <SwitchComponent change={onChange} />;
}
<SwitchComponent disabled={true} />
<SwitchComponent cssClass="e-small" />
import { useRef } from 'react';
import { SwitchComponent } from '@syncfusion/ej2-react-buttons';
function App() {
const switchRef = useRef<SwitchComponent>(null);
function handleToggle() {
switchRef.current?.toggle();
}
return (
<>
<SwitchComponent ref={switchRef} checked={false} />
<button onClick={handleToggle}>Toggle</button>
</>
);
}
<SwitchComponent name="wifi" value="enabled" checked={true} />
| Prop | Type | Default | Purpose |
|---|---|---|---|
checked | boolean | false | Initial checked state |
disabled | boolean | false | Disables user interaction |
cssClass | string | '' | Custom CSS class (use e-small for small size) |
onLabel | string | '' | Label when checked |
offLabel | string | '' | Label when unchecked |
name | string | '' | Form field name |
value | string | '' | Form field value |
enableRtl | boolean | false | Right-to-left layout |
enablePersistence | boolean | false | Persist state on reload |
A comprehensive skill for implementing the SplitButton component in React applications. The SplitButton combines a primary action button with a dropdown menu for secondary actions.
A button that displays a primary action and a dropdown menu of secondary actions.
Common Use Cases:
📄 Read: references/getting-started.md
📄 Read: references/types-and-styles.md
📄 Read: references/splitbutton-features.md
📄 Read: references/api-reference.md
📄 Read: references/customization.md
📄 Read: references/accessibility.md
import { SplitButtonComponent } from '@syncfusion/ej2-react-splitbuttons';
import '@syncfusion/ej2-react-splitbuttons/styles/material.css';
function App() {
const items = [
{ text: 'Save' },
{ text: 'Save As' },
{ text: 'Save All' }
];
const handleClick = (args) => {
console.log('Primary action clicked');
};
const handleSelect = (args) => {
console.log('Menu item selected:', args.item.text);
};
return (
<SplitButtonComponent
items={items}
onClick={handleClick}
select={handleSelect}
>
Save
</SplitButtonComponent>
);
}
export default App;
import { SplitButtonComponent } from '@syncfusion/ej2-react-splitbuttons';
import '@syncfusion/ej2-react-splitbuttons/styles/material.css';
function SaveButton() {
const items = [
{ text: 'Save', iconCss: 'e-icons e-save' },
{ text: 'Save As', iconCss: 'e-icons e-save-as' },
{ text: 'Save All', iconCss: 'e-icons e-save-all' }
];
return (
<SplitButtonComponent
items={items}
iconCss="e-icons e-save"
cssClass="e-primary"
>
Save
</SplitButtonComponent>
);
}
export default SaveButton;
import { SplitButtonComponent } from '@syncfusion/ej2-react-splitbuttons';
import { useState } from 'react';
function EventHandlingExample() {
const [lastAction, setLastAction] = useState('');
const items = [
{ text: 'Send Now' },
{ text: 'Schedule Send' },
{ text: 'Send Test' }
];
const handlePrimaryClick = () => {
setLastAction('Primary action: Send Now');
console.log('Email sent immediately');
};
const handleMenuSelect = (args) => {
setLastAction(`Menu selected: ${args.item.text}`);
console.log('Selected:', args.item.text);
};
const handleBeforeOpen = (args) => {
console.log('Dropdown menu opening');
};
return (
<div>
<SplitButtonComponent
items={items}
onClick={handlePrimaryClick}
select={handleMenuSelect}
beforeOpen={handleBeforeOpen}
cssClass="e-primary"
>
Send
</SplitButtonComponent>
<p>{lastAction}</p>
</div>
);
}
export default EventHandlingExample;
import { SplitButtonComponent } from '@syncfusion/ej2-react-splitbuttons';
import { useRef, useState } from 'react';
function DynamicItemsExample() {
const [items, setItems] = useState([
{ text: 'Option 1' },
{ text: 'Option 2' }
]);
const splitBtnRef = useRef(null);
const addItem = () => {
const newItem = { text: `Option ${items.length + 1}` };
setItems([...items, newItem]);
};
const removeItem = () => {
if (items.length > 1) {
setItems(items.slice(0, -1));
}
};
return (
<div>
<SplitButtonComponent
ref={splitBtnRef}
items={items}
cssClass="e-primary"
>
Action
</SplitButtonComponent>
<div style={{ marginTop: '20px' }}>
<button onClick={addItem}>Add Item</button>
<button onClick={removeItem} style={{ marginLeft: '10px' }}>
Remove Item
</button>
</div>
</div>
);
}
export default DynamicItemsExample;
import { SplitButtonComponent } from '@syncfusion/ej2-react-splitbuttons';
function CustomTemplateExample() {
const items = [
{ text: 'Bold', icon: 'B' },
{ text: 'Italic', icon: 'I' },
{ text: 'Underline', icon: 'U' }
];
const itemTemplate = (props) => {
return (
<div style={{ display: 'flex', alignItems: 'center', padding: '8px' }}>
<span style={{
fontWeight: props.icon === 'B' ? 'bold' : 'normal',
fontStyle: props.icon === 'I' ? 'italic' : 'normal',
textDecoration: props.icon === 'U' ? 'underline' : 'none',
marginRight: '8px'
}}>
{props.icon}
</span>
<span>{props.text}</span>
</div>
);
};
return (
<SplitButtonComponent
items={items}
itemTemplate={itemTemplate}
cssClass="e-primary"
>
Format Text
</SplitButtonComponent>
);
}
export default CustomTemplateExample;
const items = [
{ text: 'Save', iconCss: 'e-icons e-save' },
{ separator: true },
{ text: 'Save As', iconCss: 'e-icons e-save-as' },
{ text: 'Save All', iconCss: 'e-icons e-save-all' }
];
const items = [
{ text: 'Download PDF' },
{ text: 'Download Excel' },
{ text: 'Download CSV' },
{ separator: true },
{ text: 'Download All' }
];
const items = [
{ text: 'Share Link', iconCss: 'e-icons e-link' },
{ text: 'Email', iconCss: 'e-icons e-mail' },
{ text: 'Print', iconCss: 'e-icons e-print' },
{ text: 'Export', iconCss: 'e-icons e-export' }
];
const [isLoading, setIsLoading] = useState(false);
const handleAction = async (args) => {
setIsLoading(true);
try {
// Perform action
await performAction(args.item.text);
} finally {
setIsLoading(false);
}
};
| Property | Type | Default | Purpose |
|---|---|---|---|
items | ItemModel[] | [] | Dropdown menu items |
cssClass | string | '' | CSS classes for styling |
iconCss | string | '' | Icon CSS for primary button |
iconPosition | string | 'Left' | Icon position (Left, Right, Top, Bottom) |
disabled | boolean | false | Disable the button |
enableRtl | boolean | false | Enable RTL mode |
created | function | - | Event on component creation |
click | function | - | Primary button click handler |
select | function | - | Menu item selection handler |
beforeOpen | function | - | Before dropdown opens |
beforeClose | function | - | Before dropdown closes |
open | function | - | After dropdown opens |
close | function | - | After dropdown closes |
A skill for implementing the Syncfusion React RadioButtonComponent — a graphical UI element that lets users select exactly one option from a group. Supports checked/unchecked states, label positioning, small size, form integration, RTL, disabled state, and full CSS customization.
📄 Read: references/getting-started.md
RadioButtonComponent renderingname prop📄 Read: references/label-and-size.md
label propertylabelPositioncssClass="e-small"📄 Read: references/features-and-state.md
checkeddisabledname and valueenableRtlchange eventcreated📄 Read: references/style-and-appearance.md
cssClass for custom styles📄 Read: references/accessibility.md
role, aria-checked, aria-disabled)📄 Read: references/api.md
checked, disabled, label, labelPosition, name, value, cssClass, enableRtl, enablePersistence, enableHtmlSanitizer, htmlAttributes, localeclick(), destroy(), focusIn(), getSelectedValue()change (ChangeArgs), createdimport { enableRipple } from '@syncfusion/ej2-base';
import { RadioButtonComponent } from '@syncfusion/ej2-react-buttons';
import '@syncfusion/ej2-base/styles/tailwind3.css';
import '@syncfusion/ej2-buttons/styles/tailwind3.css';
enableRipple(true);
function App() {
return (
<ul>
<li><RadioButtonComponent label="Option 1" name="group1" checked={true} /></li>
<li><RadioButtonComponent label="Option 2" name="group1" /></li>
<li><RadioButtonComponent label="Option 3" name="group1" /></li>
</ul>
);
}
export default App;
import { RadioButtonComponent, ChangeArgs } from '@syncfusion/ej2-react-buttons';
import { useState } from 'react';
function App() {
const [selected, setSelected] = useState('monthly');
const handleChange = (args: ChangeArgs) => {
setSelected(args.value);
};
return (
<ul>
<li>
<RadioButtonComponent
label="Monthly"
name="plan"
value="monthly"
checked={selected === 'monthly'}
change={handleChange}
/>
</li>
<li>
<RadioButtonComponent
label="Yearly"
name="plan"
value="yearly"
checked={selected === 'yearly'}
change={handleChange}
/>
</li>
</ul>
);
}
<form>
<RadioButtonComponent name="payment" value="card" label="Credit Card" checked={true} />
<RadioButtonComponent name="payment" value="bank" label="Net Banking" />
<RadioButtonComponent name="payment" value="cod" label="Cash on Delivery" />
<button type="submit">Submit</button>
</form>
<RadioButtonComponent label="Available" name="seat" />
<RadioButtonComponent label="Unavailable" name="seat" disabled={true} />
<RadioButtonComponent label="Compact" name="size" cssClass="e-small" />
<RadioButtonComponent label="خيار 1" name="rtl" enableRtl={true} />
| Prop | Type | Default | Purpose |
|---|---|---|---|
label | string | '' | Caption displayed next to the button |
name | string | '' | Groups buttons as mutually exclusive |
value | string | '' | Form value submitted when checked |
checked | boolean | false | Sets checked state |
disabled | boolean | false | Prevents user interaction |
labelPosition | 'Before' | 'After' | 'After' | Label placement |
cssClass | string | '' | Custom CSS class(es) |
enableRtl | boolean | false | Right-to-left layout |
enablePersistence | boolean | false | Persists state across page reloads |
name to group + value for each optionchecked={true} on the desired optionchange event (args.value) or call getSelectedValue()disabled={true}cssClass="e-small"enableRtl={true}cssClass with custom CSS rules (see style-and-appearance.md)The Syncfusion React Chips (ChipListComponent) component renders compact, interactive elements representing inputs, attributes, or actions. It supports single/multiple selection, deletion, drag-and-drop, avatars, icons, templates, and rich styling.
📄 Read: references/getting-started.md
@syncfusion/ej2-react-buttons)ChipsDirective / ChipDirective📄 Read: references/types-and-selection.md
selection="Single") — choice chipsselection="Multiple") — filter chipsenableDelete)selectedChipsonClick) for action chips📄 Read: references/customization.md
e-primary, e-success, e-info, e-warning, e-dangerleadingIconCss, leadingIconUrl)avatarIconCss) and avatar text (avatarText)trailingIconCss, trailingIconUrl)cssClass="e-outline")template prop)htmlAttributes for custom HTML attributes📄 Read: references/drag-and-drop.md
allowDragAndDrop)dragArea)dragStart, dragging, dragStop📄 Read: references/style.md
📄 Read: references/accessibility.md
role, aria-selected, aria-disabled, etc.)📄 Read: references/api.md
text, chips, selection, enableDelete, cssClass, selectedChips, enabled, enableRtl, enablePersistence, allowDragAndDrop, dragArea, htmlAttributes, leadingIconCss, leadingIconUrl, avatarIconCss, avatarText, trailingIconCss, trailingIconUrladd(), remove(), find(), getSelectedChips(), select(), destroy()click, beforeClick, created, delete, deleted, dragStart, dragging, dragStopimport { ChipListComponent, ChipsDirective, ChipDirective } from '@syncfusion/ej2-react-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
import * as React from 'react';
import './App.css';
enableRipple(true);
function App() {
return (
<ChipListComponent id="chip-list">
<ChipsDirective>
<ChipDirective text="Angular" />
<ChipDirective text="React" />
<ChipDirective text="Vue" />
</ChipsDirective>
</ChipListComponent>
);
}
export default App;
CSS (App.css):
@import '../node_modules/@syncfusion/ej2-base/styles/tailwind3.css';
@import '../node_modules/@syncfusion/ej2-react-buttons/styles/tailwind3.css';
<ChipListComponent selection="Multiple">
<ChipsDirective>
<ChipDirective text="React" />
<ChipDirective text="Angular" />
<ChipDirective text="Vue" />
</ChipsDirective>
</ChipListComponent>
<ChipListComponent enableDelete={true} delete={(e) => console.log('Deleting:', e.text)}>
<ChipsDirective>
<ChipDirective text="Tag One" />
<ChipDirective text="Tag Two" />
</ChipsDirective>
</ChipListComponent>
<ChipListComponent>
<ChipsDirective>
<ChipDirective text="Andrew" avatarText="A" />
<ChipDirective text="Laura" avatarText="L" />
</ChipsDirective>
</ChipListComponent>
const chipRef = React.useRef<ChipListComponent>(null);
// Add a chip
chipRef.current?.add('New Tag');
// Remove chip at index 0
chipRef.current?.remove([0]);
// Get selected
const selected = chipRef.current?.getSelectedChips();
references/button-accessibility.md (opens in a new tab)references/button-api.md (opens in a new tab)references/button-getting-started.md (opens in a new tab)references/button-how-to.md (opens in a new tab)references/button-style-and-appearance.md (opens in a new tab)references/button-types-and-styles.md (opens in a new tab)references/buttongroup-accessibility.md (opens in a new tab)references/buttongroup-getting-started.md (opens in a new tab)references/buttongroup-how-to.md (opens in a new tab)references/buttongroup-selection-and-nesting.md (opens in a new tab)references/buttongroup-style-and-appearance.md (opens in a new tab)references/buttongroup-types-and-styles.md (opens in a new tab)references/chips-accessibility.md (opens in a new tab)references/chips-api.md (opens in a new tab)references/chips-customization.md (opens in a new tab)references/chips-drag-and-drop.md (opens in a new tab)references/chips-getting-started.md (opens in a new tab)references/chips-style.md (opens in a new tab)references/chips-types-and-selection.md (opens in a new tab)references/dropdownbutton-accessibility.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-react65 skills in this plugin
/syncfusion-react-3d-chartImplement Syncfusion React 3D Chart component from the @syncfusion/ej2-react-charts package. Use this skill when users need 3D column, bar, stacked column, stacked bar, or 100% stacked chart variations. Covers Chart3DComponent, axis configuration (category, numeric, datetime, logarithmic), data binding, multiple panes, data labels, legends, tooltips, selection, print/export, theming, and accessibility./syncfusion-react-3d-circular-chartImplements the Syncfusion React 3D Circular Chart component for pie and donut chart visualization. Use this when users need 3D circular charts, data labels, legends, tooltips, or empty point handling. Guides through installation, configuration, customization, and troubleshooting of 3D Circular Charts in React applications./syncfusion-react-accordionGuide users to implement Syncfusion React Accordion component for collapsible content panels. Use this skill whenever the user needs to create expandable/collapsible sections, accordion layouts, tabbed content panels, multi-step forms, FAQs, or navigation with expandable items. Covers component setup, expand modes, animations, dynamic content loading, styling, events, lifecycle, React hooks integration, and complete API reference.
Other plugins' skills for the same job