/syncfusion-angular:syncfusion-angular-buttonsfrom Syncfusion Angular UI Components
Comprehensive guide for implementing Syncfusion Angular button components including Button, ButtonGroup, DropDownButton, Floating Action Button (FAB), ProgressButton, RadioButton, Switch, Speed Dial, SplitButtons, and Chips. Use this when implementing and styling these components - covering visual styles (primary, outline, toggle, icon, round, block), grouping, dropdowns with popup items and animations, FAB positioning/scoping, Speed Dial linear/radial action items, progress-enabled buttons, and toggle/radio controls.
Ships in Syncfusion Angular 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.
The Syncfusion Angular Button is a graphical user interface element rendered via the ejs-button directive. It triggers an action on click and supports text, icons, or both — with extensive styling, accessibility, and behavioral options.
📄 Read: references/button-getting-started.md
@syncfusion/ej2-angular-buttons via ng addejs-button directivecssClass📄 Read: references/button-types-and-styles.md
e-primary, e-success, e-info, e-warning, e-danger, e-link)e-active classiconCss and iconPositione-small) vs normal📄 Read: references/button-how-to.md
e-block<input> and <a> elements as buttons[disabled]="true"[enableRtl]="true"created event📄 Read: references/button-accessibility.md
aria-label for icon-only buttons)📄 Read: references/button-ej1-migration.md
text → content, prefixIcon → iconCss)📄 Read: references/button-api.md
click(), focusIn(), destroy()createdng add @syncfusion/ej2-angular-buttons
// src/app/app.ts (Angular 20+) or src/app/app.component.ts (Angular 19 and below)
import { ButtonModule } from '@syncfusion/ej2-angular-buttons';
import { Component } from '@angular/core';
@Component({
imports: [ButtonModule],
standalone: true,
selector: 'app-root',
template: `
<div class="e-section-control">
<button ejs-button>Default</button>
<button ejs-button cssClass="e-primary">Primary</button>
<button ejs-button cssClass="e-success">Success</button>
</div>
`
})
export class AppComponent { }
Angular 20+ note: The CLI generates
src/app/app.ts,app.html, andapp.css(no.component.suffix). In Angular 19 and below, the file isapp.component.ts.
<button ejs-button cssClass="e-primary">Primary</button>
<button ejs-button cssClass="e-success">Success</button>
<button ejs-button cssClass="e-warning">Warning</button>
<button ejs-button cssClass="e-danger">Danger</button>
<button ejs-button iconCss="e-icons e-save">Save</button>
<button ejs-button iconCss="e-icons e-delete" iconPosition="Right">Delete</button>
// In component class
@ViewChild('togglebtn') togglebtn: ButtonComponent | any;
@HostListener('click', ['togglebtn'])
btnClick() {
if (this.togglebtn.element.classList.contains('e-active')) {
this.togglebtn.content = 'Pause';
} else {
this.togglebtn.content = 'Play';
}
}
<button #togglebtn ejs-button cssClass="e-flat" [isToggle]="true" content="Play"></button>
<button ejs-button [disabled]="true">Disabled</button>
<button ejs-button cssClass="e-block e-primary">Full Width</button>
The Syncfusion Angular ButtonGroup is a CSS-only component that groups multiple buttons together into a single cohesive UI element. It supports horizontal and vertical layouts, radio/checkbox selection behaviors, outline and color styles, icon buttons, nested split/dropdown buttons, RTL, form integration, and full accessibility compliance.
Package: @syncfusion/ej2-angular-buttons
Container class: .e-btn-group
Button directive: ejs-button (from ButtonModule)
📄 Read: references/buttongroup-getting-started.md
@syncfusion/ej2-angular-buttons via ng addButtonModule import in standalone component's imports[]ejs-buttone-vertical class📄 Read: references/buttongroup-types-and-styles.md
e-outline on container + each button)e-primary, e-success, e-info, e-warning, e-danger via cssClasse-round-cornericonCss property📄 Read: references/buttongroup-selection.md
<input type="radio"> + <label class="e-btn"><input type="checkbox"> + <label class="e-btn">checked attribute📄 Read: references/buttongroup-how-to.md
createButtonGroup utility📄 Read: references/buttongroup-accessibility.md
1. Install the package:
ng add @syncfusion/ej2-angular-buttons
2. Add CSS to styles.css:
@import 'node_modules/@syncfusion/ej2-base/styles/material.css';
@import 'node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import 'node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
3. Create a basic ButtonGroup:
import { Component } from '@angular/core';
import { ButtonModule } from '@syncfusion/ej2-angular-buttons';
@Component({
imports: [ButtonModule],
standalone: true,
selector: 'app-root',
template: `
<div class='e-btn-group'>
<button ejs-button>HTML</button>
<button ejs-button>CSS</button>
<button ejs-button>JavaScript</button>
</div>`
})
export class AppComponent { }
Add e-vertical to the container — buttons stack top-to-bottom:
<div class='e-btn-group e-vertical'>
<button ejs-button>HTML</button>
<button ejs-button>CSS</button>
<button ejs-button>JavaScript</button>
</div>
e-verticaldoes not support nesting SplitButton.
Add e-outline to container and cssClass='e-outline' to each button:
<div class='e-btn-group e-outline'>
<button ejs-button cssClass='e-outline'>HTML</button>
<button ejs-button cssClass='e-outline'>CSS</button>
<button ejs-button cssClass='e-outline'>JavaScript</button>
</div>
<div class='e-btn-group'>
<input type="radio" id="radioleft" name="align" value="left"/>
<label class="e-btn" for="radioleft">Left</label>
<input type="radio" id="radiomiddle" name="align" value="middle"/>
<label class="e-btn" for="radiomiddle">Center</label>
<input type="radio" id="radioright" name="align" value="right"/>
<label class="e-btn" for="radioright">Right</label>
</div>
<div class='e-btn-group'>
<input type="checkbox" id="check_bold" name="font" value="bold"/>
<label class="e-btn" for="check_bold">Bold</label>
<input type="checkbox" id="check_italic" name="font" value="italic"/>
<label class="e-btn" for="check_italic">Italic</label>
<input type="checkbox" id="check_underline" name="font" value="underline"/>
<label class="e-btn" for="check_underline">Underline</label>
</div>
| User Need | Approach |
|---|---|
| Group action buttons visually | Basic e-btn-group with ejs-button |
| Only one option selectable at a time | Radio type (input[radio] + label.e-btn) |
| Multiple options selectable | Checkbox type (input[checkbox] + label.e-btn) |
| Stack buttons vertically | Add e-vertical to container |
| Buttons with icons | iconCss property on each ejs-button |
| Rounded edges on group | e-round-corner on container |
| RTL layout | e-rtl on container |
| Programmatic initialization | createButtonGroup from @syncfusion/ej2-splitbuttons |
| Extend group with dropdown/popup | Nest ejs-dropdownbutton or ejs-splitbutton |
The Syncfusion Angular DropDownButton is a graphical UI element rendered via the ejs-dropdownbutton directive. It displays a button that opens a popup menu of action items when clicked. It supports icons, custom templates, animations, navigation links, accessibility, RTL, and dynamic item management.
📄 Read: references/dropdownbutton-getting-started.md
@syncfusion/ej2-angular-splitbuttons via ng addejs-dropdownbutton directiveItemModel[] action items📄 Read: references/dropdownbutton-icons-and-appearance.md
iconCss and iconPosition (Left, Top)e-vertical cssClasse-caret-hide cssClass📄 Read: references/dropdownbutton-popup-items.md
iconCssurl property on itemsseparator: truebeforeItemRender eventtarget propertyitemTemplate property for custom item rendering📄 Read: references/dropdownbutton-events.md
select — handle item selectionopen / close — popup open/close callbacksbeforeOpen / beforeClose — cancel or customize before open/closebeforeItemRender — customize each item during rendercreated — component initialized callbackopen event📄 Read: references/dropdownbutton-animation.md
animationSettings property overviewduration and easing📄 Read: references/dropdownbutton-configuration.md
disabledenableRtlpopupWidth for consistent popup sizingcreatePopupOnClick for deferred popup creationenableHtmlSanitizer for safe HTML renderingcloseActionEvents to customize popup close triggerenablePersistence for state persistenceaddItems, removeItems, toggle📄 Read: references/dropdownbutton-api.md
ItemModel interface fieldsBeforeOpenCloseMenuEventArgs, MenuEventArgs, OpenCloseMenuEventArgs📄 Read: references/dropdownbutton-accessibility.md
import { Component } from '@angular/core';
import { DropDownButtonModule, ItemModel } from '@syncfusion/ej2-angular-splitbuttons';
@Component({
standalone: true,
imports: [DropDownButtonModule],
selector: 'app-root',
template: `
<button ejs-dropdownbutton [items]="items" content="Clipboard" iconCss="e-icons e-copy" (select)="onSelect($event)"></button>
`
})
export class AppComponent {
public items: ItemModel[] = [
{ text: 'Cut', iconCss: 'e-icons e-cut' },
{ text: 'Copy', iconCss: 'e-icons e-copy' },
{ text: 'Paste', iconCss: 'e-icons e-paste' }
];
onSelect(args: any) {
console.log('Selected:', args.item.text);
}
}
public items: ItemModel[] = [
{ text: 'Cut' },
{ text: 'Copy' },
{ text: 'Paste' },
{ separator: true },
{ text: 'Font' },
{ text: 'Paragraph' }
];
<button ejs-dropdownbutton [items]="items" iconCss="e-icons e-menu" cssClass="e-caret-hide"></button>
<button ejs-dropdownbutton [items]="items" content="Paste" iconCss="e-icons e-paste" iconPosition="Top" cssClass="e-vertical"></button>
<button ejs-dropdownbutton [items]="items" content="Message" enableRtl="true"></button>
<button ejs-dropdownbutton [items]="items" [popupWidth]="'250px'" content="Options"></button>
public items: ItemModel[] = [
{ text: 'Home', url: '/home' },
{ text: 'About', url: '/about' }
];
The Syncfusion Angular Floating Action Button (ejs-fab) 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, events, full accessibility compliance, and CSS customization.
Package: @syncfusion/ej2-angular-buttons
Module: FabModule
Selector: ejs-fab
📄 Read: references/floating-action-button-getting-started.md
@syncfusion/ej2-angular-buttons via ng addFabModule import in standalone componentejs-fab setuptarget to scope FAB to a container(click) event📄 Read: references/floating-action-button-icons.md
iconCss property for icon-only FABcontent property for text labeliconPosition for Left vs Right icon placement📄 Read: references/floating-action-button-positions.md
position property with all nine predefined values (TopLeft → BottomRight)target property to scope FAB to a container elementcssClassrefreshPosition() after target resize📄 Read: references/floating-action-button-styles.md
cssClass values: e-primary, e-outline, e-info, e-success, e-warning, e-danger.e-fab.e-btn, hover, focus, active, icon)📄 Read: references/floating-action-button-events.md
(created) event for post-render initialization(click) event for click handling📄 Read: references/floating-action-button-accessibility.md
aria-label)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, clickng add @syncfusion/ej2-angular-buttons
/* styles.css – added automatically by ng add */
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-icons/styles/material.css';
import { FabModule } from '@syncfusion/ej2-angular-buttons';
import { Component } from '@angular/core';
@Component({
imports: [FabModule],
standalone: true,
selector: 'app-root',
template: `
<div id="targetElement" style="position:relative;min-height:350px;border:1px solid;"></div>
<button ejs-fab id="fab" content="Add" target="#targetElement"></button>
`
})
export class AppComponent { }
import { FabModule } from '@syncfusion/ej2-angular-buttons';
import { Component } from '@angular/core';
@Component({
imports: [FabModule],
standalone: true,
selector: 'app-root',
template: `
<div id="target" style="position:relative;min-height:350px;border:1px solid;"></div>
<button ejs-fab id="fab" iconCss="e-icons e-edit" target="#target"></button>
`
})
export class AppComponent { }
import { FabModule } from '@syncfusion/ej2-angular-buttons';
import { Component } from '@angular/core';
@Component({
imports: [FabModule],
standalone: true,
selector: 'app-root',
template: `
<div id="target" style="position:relative;min-height:350px;border:1px solid;"></div>
<button ejs-fab id="fab" iconCss="e-icons e-edit" content="Edit"
(click)="onFabClick()" target="#target"></button>
`
})
export class AppComponent {
onFabClick(): void {
alert('FAB clicked!');
}
}
import { FabModule } from '@syncfusion/ej2-angular-buttons';
import { Component } from '@angular/core';
@Component({
imports: [FabModule],
standalone: true,
selector: 'app-root',
template: `
<div id="target" style="position:relative;min-height:350px;border:1px solid;"></div>
<button ejs-fab id="fab" iconCss="e-icons e-delete" cssClass="e-danger" target="#target"></button>
`
})
export class AppComponent { }
| Property | 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 Angular Speed Dial component renders a floating action button that expands to reveal a set of action items. It is based on the ejs-speeddial directive and supports linear and radial display modes, flexible positioning, animations, modal overlay, custom templates, and full accessibility compliance.
📄 Read: references/speeddial-getting-started.md
@syncfusion/ej2-angular-buttons via ng addejs-speeddial directive with items📄 Read: references/speeddial-items-and-animation.md
SpeedDialItemModel: text, iconCss, id, title, disabled)animation, SpeedDialAnimationSettingsModel)📄 Read: references/speeddial-display-modes.md
direction (Up, Down, Left, Right, Auto)mode='Radial'radialSettings: direction, startAngle, endAngle, offset)📄 Read: references/speeddial-position-and-visibility.md
position values (TopLeft → BottomRight)target to anchor Speed Dial within a containeropensOnHovershow() and hide() methodsrefreshPosition()visible property📄 Read: references/styles-and-appearance.md
openIconCss, closeIconCss, contentcssClass (e-primary, e-success, e-warning, etc.)disabledvisibleopensOnHovertitle field📄 Read: references/speeddial-templates.md
itemTemplate and <ng-template #itemTemplate>popupTemplate and <ng-template #popupTemplate>📄 Read: references/speeddial-events.md
clicked — action item clicked (SpeedDialItemEventArgs)created — component renderedbeforeOpen / onOpen — popup opening lifecyclebeforeClose / onClose — popup closing lifecyclebeforeItemRender — each item rendered📄 Read: references/speeddial-accessibility.md
role, aria-label, aria-expanded, etc.)📄 Read: references/speeddial-api.md
show(), hide(), refreshPosition()SpeedDialItemModel fieldsSpeedDialAnimationSettingsModel fieldsRadialSettingsModel fieldsimport { Component } from '@angular/core';
import { SpeedDialModule, SpeedDialItemModel } from '@syncfusion/ej2-angular-buttons';
@Component({
imports: [SpeedDialModule],
standalone: true,
selector: 'app-root',
template: `
<div id="target" style="position:relative; min-height:350px; border:1px solid;"></div>
<button ejs-speeddial
id="speeddial"
content="Edit"
openIconCss="e-icons e-edit"
closeIconCss="e-icons e-close"
target="#target"
[items]="items"
(clicked)="onItemClicked($event)">
</button>
`
})
export class AppComponent {
public items: SpeedDialItemModel[] = [
{ text: 'Cut', iconCss: 'e-icons e-cut' },
{ text: 'Copy', iconCss: 'e-icons e-copy' },
{ text: 'Paste', iconCss: 'e-icons e-paste' }
];
public onItemClicked(args: any) {
console.log(args.item.text + ' clicked');
}
}
public items: SpeedDialItemModel[] = [
{ iconCss: 'e-icons e-cut', title: 'Cut' },
{ iconCss: 'e-icons e-copy', title: 'Copy' },
{ iconCss: 'e-icons e-paste', title: 'Paste' }
];
<button ejs-speeddial id="speeddial"
openIconCss="e-icons e-edit"
closeIconCss="e-icons e-close"
mode="Radial"
position="MiddleCenter"
target="#target"
[items]="items"
[radialSettings]="radialSettings">
</button>
public radialSettings: RadialSettingsModel = {
direction: 'AntiClockwise',
startAngle: 180,
endAngle: 360,
offset: '80px'
};
<button ejs-speeddial id="speeddial"
openIconCss="e-icons e-edit"
[modal]="true"
target="#target"
[items]="items">
</button>
@ViewChild('speeddial') speeddialObj: SpeedDialComponent;
show() { this.speeddialObj.show(); }
hide() { this.speeddialObj.hide(); }
The Syncfusion Angular ProgressButton (ejs-progressbutton) extends a standard button with built-in progress indication — a spinner and/or background filler UI — ideal for async operations, form submissions, or any action with a perceivable wait time.
| Task | Reference File |
|---|---|
| Installation & basic setup | 📄 references/getting-started.md |
| Spinner config & progress animation | 📄 references/spinner-and-progress.md |
| How-to recipes (hide spinner, cssClass, events, text/style changes) | 📄 references/how-to.md |
| Accessibility & keyboard interaction | 📄 references/accessibility.md |
| Full API — properties, methods, events, interfaces | 📄 references/api.md |
# Install the package
ng add @syncfusion/ej2-angular-splitbuttons
// src/app/app.ts (Angular 20+) or app.component.ts (Angular 19 and below)
import { Component } from '@angular/core';
import { ProgressButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
@Component({
standalone: true,
imports: [ProgressButtonModule],
selector: 'app-root',
template: `
<button ejs-progressbutton content="Upload" [enableProgress]="true"
[duration]="3000">
</button>
`
})
export class AppComponent {}
/* styles.css — or import individually */
@import '@syncfusion/ej2-base/styles/material.css';
@import '@syncfusion/ej2-buttons/styles/material.css';
@import '@syncfusion/ej2-popups/styles/material.css';
@import '@syncfusion/ej2-splitbuttons/styles/material.css';
template: `
<button ejs-progressbutton content="Submit"
[spinSettings]="{ position: 'Right' }">
</button>
`
template: `
<button ejs-progressbutton content="Download" [enableProgress]="true"
[animationSettings]="{ effect: 'SlideLeft' }">
</button>
`
template: `
<button ejs-progressbutton content="Send"
(begin)="onBegin($event)"
(progress)="onProgress($event)"
(end)="onEnd($event)"
(fail)="onFail($event)">
</button>
`
// Component class
onBegin(args: any) { console.log('Started:', args.percent); }
onProgress(args: any) { console.log('Progress:', args.percent); }
onEnd(args: any) { console.log('Completed'); }
onFail(args: any) { console.log('Failed'); }
@ViewChild('progressBtn') progressBtn!: ProgressButtonComponent;
startProgress() { this.progressBtn.start(0); }
stopProgress() { this.progressBtn.stop(); }
completeProgress() { this.progressBtn.progressComplete(); }
A lightweight toggle component (ejs-switch) for on/off binary input. Supports checked state, labels, disabled, sizing, two-way binding, form integration, custom styling, events, and full WCAG 2.2 accessibility.
📄 Read: references/getting-started.md
ng add @syncfusion/ej2-angular-buttonschecked stateonLabel and offLabel text📄 Read: references/switch-features.md
disabled property)cssClass: 'e-small')enableRtl)ngModeltoggle() methodenablePersistence)📄 Read: references/events-and-state.md
change event — react to user-driven state flipsbeforeChange event — intercept and cancel state changecreated event — run logic after component rendersclick() and focusIn() native methods📄 Read: references/form-integration.md
name and value attributes for form POSTngModelname in a form📄 Read: references/customization.md
cssClass for custom styleshtmlAttributes📄 Read: references/accessibility.md
role="switch", aria-disabled📄 Read: references/api.md
BeforeChangeEventArgs and ChangeEventArgs interfacesng add @syncfusion/ej2-angular-buttons
// src/app/app.ts (Angular 19+ standalone)
import { Component } from '@angular/core';
import { SwitchModule } from '@syncfusion/ej2-angular-buttons';
@Component({
standalone: true,
imports: [SwitchModule],
selector: 'app-root',
template: `
<ejs-switch [checked]="isOn" (change)="onToggle($event)"></ejs-switch>
`
})
export class AppComponent {
isOn = false;
onToggle(args: any): void {
console.log('Switch is now:', args.checked);
}
}
/* styles.css */
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
<ejs-switch [checked]="true"></ejs-switch>
<ejs-switch [checked]="true" onLabel="ON" offLabel="OFF"></ejs-switch>
Labels are not displayed in Material themes. Avoid long custom text.
<ejs-switch cssClass="e-small"></ejs-switch>
<ejs-switch [disabled]="true"></ejs-switch>
<ejs-switch [(ngModel)]="isEnabled"></ejs-switch>
<p>State: {{ isEnabled }}</p>
<ejs-switch (beforeChange)="onBeforeChange($event)"></ejs-switch>
onBeforeChange(args: BeforeChangeEventArgs): void {
// Cancel if condition not met
if (!this.canToggle) {
args.cancel = true;
}
}
@ViewChild('switch') switchObj!: SwitchComponent;
toggle(): void {
this.switchObj.toggle();
}
The Syncfusion Angular RadioButton (ejs-radiobutton) is a form input component that lets users select exactly one option from a group. It supports labels, size variants, two-way binding, form integration, accessibility, and extensive customization.
📄 Read: references/getting-started.md
ng add📄 Read: references/label-size-states.md
label and labelPosition (Before/After)e-small)checked and unchecked statesdisabled stateenablePersistence📄 Read: references/forms-and-binding.md
name attribute for grouping radio buttonsvalue attribute for form submission[(ngModel)]📄 Read: references/customization-and-advanced.md
enableRtl)htmlAttributes for ARIA and data attributesenableHtmlSanitizer and localegetSelectedValue(), click(), focusIn(), destroy()📄 Read: references/accessibility.md
📄 Read: references/api.md
ChangeArgs interfaceimport { Component } from '@angular/core';
import { RadioButtonModule } from '@syncfusion/ej2-angular-buttons';
@Component({
standalone: true,
imports: [RadioButtonModule],
selector: 'app-root',
template: `
<ejs-radiobutton label="Option A" name="choice" value="a" [checked]="true"></ejs-radiobutton>
<ejs-radiobutton label="Option B" name="choice" value="b"></ejs-radiobutton>
<ejs-radiobutton label="Option C" name="choice" value="c"></ejs-radiobutton>
`
})
export class AppComponent {}
Always set a shared
nameattribute on buttons that belong to the same group — this enforces mutual exclusivity.
template: `
<ejs-radiobutton label="Credit Card" name="payment" value="credit"
(change)="onPaymentChange($event)">
</ejs-radiobutton>
<ejs-radiobutton label="Debit Card" name="payment" value="debit"
(change)="onPaymentChange($event)">
</ejs-radiobutton>
`
onPaymentChange(args: ChangeArgs): void {
console.log('Selected value:', args.value); // 'credit' or 'debit'
}
// All buttons share [(ngModel)]="selectedValue"
template: `
<ejs-radiobutton label="Monthly" name="plan" value="monthly"
[(ngModel)]="selectedPlan">
</ejs-radiobutton>
<ejs-radiobutton label="Annual" name="plan" value="annual"
[(ngModel)]="selectedPlan">
</ejs-radiobutton>
<p>Selected: {{ selectedPlan }}</p>
`
<ejs-radiobutton label="Small Option" name="size" cssClass="e-small"></ejs-radiobutton>
<ejs-radiobutton label="Unavailable" name="plan" [disabled]="true"></ejs-radiobutton>
| Property | Type | Default | Purpose |
|---|---|---|---|
label | string | '' | Caption text next to the button |
name | string | '' | Groups mutually exclusive buttons |
value | string | '' | Form submission value |
checked | boolean | false | Pre-select the button |
disabled | boolean | false | Disable interaction |
cssClass | string | '' | Custom CSS; use 'e-small' for small size |
labelPosition | RadioLabelPosition | 'After' | 'Before' or 'After' |
enableRtl | boolean | false | Right-to-left layout |
For the full API, read references/api.md.
A comprehensive guide for implementing the Syncfusion Essential JS 2 SplitButton component in Angular applications. Learn to create split buttons with dropdown menus, manage items, handle events, customize styling, and integrate with forms.
The Syncfusion Angular SplitButton component is a versatile UI control that combines a primary button with a dropdown menu:
Package: @syncfusion/ej2-angular-splitbuttons
Read the following references based on your specific needs:
📄 Read: references/getting-started.md
📄 Read: references/button-items-configuration.md
📄 Read: references/events-and-methods.md
toggle(), addItems(), removeItems(), focusIn()📄 Read: references/styling-and-customization.md
📄 Read: references/templates-and-icons.md
📄 Read: references/popup-positioning.md
popupWidth property — fixed popup widthtarget property — custom popup content (color picker, ListView, etc.)createPopupOnClick — deferred popup creationcloseActionEvents — custom dismiss trigger📄 Read: references/accessibility-and-globalization.md
📄 Read: references/reactive-forms-integration.md
📄 Read: references/api-reference.md
content, items, iconCss, iconPosition, cssClass, disabled, enableRtl, target, popupWidth, animationSettings, closeActionEvents, createPopupOnClick, enableHtmlSanitizer, enablePersistence, localetoggle(), addItems(), removeItems(), focusIn(), getPersistData(), onPropertyChanged()ItemModel interface: text, id, iconCss, url, separator, disabledSplitButtonIconPosition enum: "Left" | "Top"BeforeOpenCloseMenuEventArgs, OpenCloseMenuEventArgs, MenuEventArgs, ClickEventArgs// app.component.ts
import { Component } from '@angular/core';
import { ItemModel } from '@syncfusion/ej2-angular-splitbuttons';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
// Dropdown items
public dropdownItems: ItemModel[] = [
{ text: 'Cut' },
{ text: 'Copy' },
{ text: 'Paste' }
];
// Primary button action handler
onPrimaryClick(): void {
console.log('Primary action clicked');
}
// Item selection handler
onItemSelect(args: any): void {
console.log('Selected item:', args.item.text);
}
}
<!-- app.component.html -->
<div style="padding: 20px; font-family: Arial, sans-serif;">
<h2>Basic SplitButton</h2>
<ejs-splitbutton
content="Paste"
[items]="dropdownItems"
(click)="onPrimaryClick()"
(select)="onItemSelect($event)">
</ejs-splitbutton>
</div>
/* app.component.css */
@import '../node_modules/@syncfusion/ej2-base/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material3.css';
:host ::ng-deep .e-split-button {
margin: 10px;
}
When you need a split button with icon-rich dropdown menu:
export class AppComponent {
public fileActions: ItemModel[] = [
{ text: 'Save', iconCss: 'e-icons e-save' },
{ text: 'Save As', iconCss: 'e-icons e-save-as' },
{ separator: true },
{ text: 'Export', iconCss: 'e-icons e-export' },
{ text: 'Print', iconCss: 'e-icons e-print' }
];
onFileAction(args: any): void {
const action = args.item.text;
console.log(`File action: ${action}`);
// Execute based on selected action
}
}
When you need to enable/disable menu items based on application state:
export class AppComponent {
@ViewChild('splitBtn') splitButtonRef!: SplitButtonComponent;
isEditMode: boolean = false;
public items: ItemModel[] = [
{ text: 'Edit', disabled: true },
{ text: 'Delete', disabled: true },
{ text: 'Duplicate' }
];
toggleEditMode(): void {
this.isEditMode = !this.isEditMode;
// Update item disabled states
this.items[0].disabled = !this.isEditMode;
this.items[1].disabled = !this.isEditMode;
}
onItemSelect(args: any): void {
if (!args.item.disabled) {
console.log('Executing:', args.item.text);
}
}
}
When you need to add/remove items at runtime:
export class AppComponent {
@ViewChild('splitBtn') splitButtonRef!: SplitButtonComponent;
public items: ItemModel[] = [];
ngOnInit(): void {
// Load initial items
this.loadItems();
}
loadItems(): void {
this.items = [
{ text: 'Item 1' },
{ text: 'Item 2' },
{ text: 'Item 3' }
];
}
addItem(text: string): void {
this.items.push({ text: text });
}
removeItem(index: number): void {
this.items.splice(index, 1);
}
clearAllItems(): void {
this.items = [];
}
}
When you need menu items to navigate to different URLs. Note: ItemModel only supports url; the open-target (_blank, _self) must be handled in (select):
export class AppComponent {
public navigationItems: ItemModel[] = [
{ id: 'home', text: 'Home', url: '/' },
{ id: 'docs', text: 'Documentation', url: '/docs' },
{ separator: true },
{ id: 'github', text: 'GitHub', url: 'https://github.com' },
{ id: 'support', text: 'Support', url: 'https://support.syncfusion.com' }
];
onNavigate(args: any): void {
const itemUrl: string = args.item.url;
if (!itemUrl) return;
// Open external URLs in new tab, internal in same tab
const isExternal = itemUrl.startsWith('http');
window.open(itemUrl, isExternal ? '_blank' : '_self');
}
}
When you need a fixed popup width or a completely custom popup element:
import { Component } from '@angular/core';
import { ItemModel, SplitButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
@Component({
standalone: true,
imports: [SplitButtonModule],
selector: 'app-root',
template: `
<!-- Fixed-width popup -->
<ejs-splitbutton
content="Actions"
[items]="items"
popupWidth="250px"
(beforeOpen)="onBeforeOpen($event)"
(open)="onOpen()"
(close)="onClose()">
</ejs-splitbutton>
`
})
export class AppComponent {
public items: ItemModel[] = [
{ text: 'Save', iconCss: 'e-icons e-save' },
{ text: 'Export', iconCss: 'e-icons e-export' },
{ text: 'Print', iconCss: 'e-icons e-print' }
];
onBeforeOpen(args: any): void {
console.log('Popup about to open');
}
onOpen(): void {
console.log('Popup opened');
}
onClose(): void {
console.log('Popup closed');
}
}
| Prop | Type | Description | Example |
|---|---|---|---|
content | string | Text for primary button | content="Save" |
items | ItemModel[] | Dropdown menu items | [items]="items" |
iconCss | string | Primary button icon CSS class | iconCss="e-icons e-save" |
iconPosition | SplitButtonIconPosition | Icon position ("Left" or "Top") | iconPosition="Top" |
disabled | boolean | Enable/disable component | [disabled]="false" |
cssClass | string | Custom CSS classes on component | cssClass="custom-split-btn" |
enableRtl | boolean | Enable RTL layout | [enableRtl]="true" |
target | string | Element | Custom element as popup content | target="#colorPicker" |
popupWidth | string | number | Popup width ("auto" default) | popupWidth="250px" |
createPopupOnClick | boolean | Defer popup DOM creation | [createPopupOnClick]="true" |
closeActionEvents | string | DOM event to dismiss popup | closeActionEvents="mouseleave" |
animationSettings | AnimationModel | Open/close animation | [animationSettings]="animation" |
locale | string | Culture/language code | locale="ar-SA" |
(beforeOpen) | EventEmitter | Before dropdown opens | (beforeOpen)="onBeforeOpen($event)" |
(click) | EventEmitter | Primary button clicked | (click)="onPrimaryClick($event)" |
(select) | EventEmitter | Item selected from dropdown | (select)="onItemSelect($event)" |
(open) | EventEmitter | Dropdown opened | (open)="onOpen($event)" |
(close) | EventEmitter | Dropdown closed | (close)="onClose($event)" |
(beforeClose) | EventEmitter | Before dropdown closes | (beforeClose)="onBeforeClose($event)" |
(beforeItemRender) | EventEmitter | Before each item renders | (beforeItemRender)="onRender($event)" |
(created) | EventEmitter | Component created | (created)="onCreated()" |
⚠️ Note:
position,titleandopen()/close()methods do not exist in the official API. Usetoggle()for programmatic open/close. Seereferences/api-reference.mdfor the full authoritative API.
Use Case 1: Document Toolbar
Use Case 2: Form Actions Menu
Use Case 3: Navigation Menu
Use Case 4: Settings Panel
Use Case 5: Responsive Toolbar
The Syncfusion Angular Chips (ejs-chiplist) 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-angular-buttons)e-chips / e-chip📄 Read: references/types-and-selection.md
selection="Single") — choice chipsselection="Multiple") — filter chips[enableDelete]="true")[selectedChips](click)) 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)htmlAttributes for custom HTML attributes📄 Read: references/drag-and-drop.md
[allowDragAndDrop]="true")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 { Component } from '@angular/core';
import { ChipListModule } from '@syncfusion/ej2-angular-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
@Component({
selector: 'app-root',
standalone: true,
imports: [ChipListModule],
template: `
<ejs-chiplist id="chip-list">
<e-chips>
<e-chip text="Angular"></e-chip>
<e-chip text="Vue"></e-chip>
<e-chip text="Svelte"></e-chip>
</e-chips>
</ejs-chiplist>
`
})
export class AppComponent {}
CSS (src/styles.css):
@import '~@syncfusion/ej2-base/styles/tailwind3.css';
@import '~@syncfusion/ej2-angular-buttons/styles/tailwind3.css';
<ejs-chiplist selection="Multiple">
<e-chips>
<e-chip text="Angular"></e-chip>
<e-chip text="Vue"></e-chip>
<e-chip text="Svelte"></e-chip>
</e-chips>
</ejs-chiplist>
<ejs-chiplist [enableDelete]="true" (delete)="onChipDelete($event)">
<e-chips>
<e-chip text="Tag One"></e-chip>
<e-chip text="Tag Two"></e-chip>
</e-chips>
</ejs-chiplist>
<ejs-chiplist>
<e-chips>
<e-chip text="Andrew" avatarText="A"></e-chip>
<e-chip text="Laura" avatarText="L"></e-chip>
</e-chips>
</ejs-chiplist>
import { Component, ViewChild } from '@angular/core';
import { ChipListComponent, ChipListModule } from '@syncfusion/ej2-angular-buttons';
@Component({
selector: 'app-chip-demo',
standalone: true,
imports: [ChipListModule],
template: `
<ejs-chiplist #chipList id="chip-list">
<e-chips>
<e-chip text="Angular"></e-chip>
<e-chip text="Vue"></e-chip>
</e-chips>
</ejs-chiplist>
`
})
export class ChipDemoComponent {
@ViewChild('chipList') chipList?: ChipListComponent;
addChip() {
this.chipList?.add('New Tag');
}
removeFirstChip() {
this.chipList?.remove([0]);
}
getSelected() {
const selected = this.chipList?.getSelectedChips();
console.log(selected);
}
}
references/button-accessibility.md (opens in a new tab)references/button-api.md (opens in a new tab)references/button-ej1-migration.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-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.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)references/dropdownbutton-animation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-angularOther plugins' skills for the same job
65 skills in this plugin
/syncfusion-angular-3d-chartImplement interactive 3D charts in Angular applications using Syncfusion. Guide covers setup, chart types (bar, column, stacked variants), customization, data binding, axis configuration, legends, tooltips, selection, data labels, appearance styling, dimensions, print/export, and accessibility. Use this skill whenever a user needs to create, configure, or customize 3D chart visualizations./syncfusion-angular-accordionGuide for implementing Angular Accordion components for collapsible content panels, expandable sections, FAQs, multi-step wizards, step-by-step forms, navigation menus, or tabbed navigation. Use this skill when users mention expanding/collapsing content, accordion layouts, step-by-step workflows, or hierarchical content organization. This skill covers initialization, expand modes, data binding, dynamic loading, animations, nested accordions, and real-world patterns./syncfusion-angular-accumulation-chartImplement and customize Syncfusion Angular Accumulation Charts (Pie, Doughnut, Pyramid, Funnel) with data binding, labels, legends, and tooltips. Use this when creating accumulation charts, configuring chart types, customizing data visualization, adding annotations, or handling interactive chart events in Angular applications.