/syncfusion-react:syncfusion-react-popupsfrom Syncfusion React UI Components
Comprehensive guide for implementing Syncfusion React popup components including Dialog, ToolTip. Use this when building modal/modeless dialogs, confirmation popups, forms in dialogs, draggable windows, popovers, tooltips, and overlaid content with custom positioning, animations, WCAG 2.2 accessibility, forms integration, and event handling in React applications.
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.
The DialogComponent displays content in a floating window with support for modal and modeless modes, custom positioning, dragging, resizing, animations, templating, and comprehensive accessibility features.
DialogComponent Features:
📄 Read: references/getting-started.md
@syncfusion/ej2-react-popups)📄 Read: references/modal-vs-modeless.md
📄 Read: references/positioning-and-dragging.md
📄 Read: references/templates-and-content.md
📄 Read: references/buttons-and-actions.md
📄 Read: references/animation-effects.md
📄 Read: references/localization-and-accessibility.md
📄 Read: references/advanced-patterns.md
📄 Read: references/api-reference.md
⚠️ Dependency Alignment: All
@syncfusion/ej2-*packages must be on the same major version to avoid peer-dependency conflicts and supply-chain mismatches. Install them together:npm install @syncfusion/ej2-react-popups @syncfusion/ej2-base @syncfusion/ej2-buttons @syncfusion/ej2-popups
Basic Modal Dialog:
import React, { useRef, useState } from 'react';
import { DialogComponent } from '@syncfusion/ej2-react-popups';
import '@syncfusion/ej2-base/styles/material.css';
import '@syncfusion/ej2-buttons/styles/material.css';
import '@syncfusion/ej2-popups/styles/material.css';
export default function App() {
const dialogRef = useRef(null);
const [isOpen, setIsOpen] = useState(false);
const handleOpen = () => {
dialogRef.current?.show();
setIsOpen(true);
};
const handleClose = () => {
dialogRef.current?.hide();
setIsOpen(false);
};
const buttons = [
{
buttonModel: {
content: 'OK',
cssClass: 'e-flat',
isPrimary: true,
},
click: handleClose,
},
{
buttonModel: {
content: 'Cancel',
cssClass: 'e-flat',
},
click: handleClose,
},
];
return (
<div id="dialog-target" style={{ position: 'relative', width: '100%', minHeight: '400px' }}>
<button onClick={handleOpen} className="e-control e-btn e-primary">
Open Dialog
</button>
<DialogComponent
ref={dialogRef}
header="Confirm Action"
buttons={buttons}
showCloseIcon={true}
target="#dialog-target"
width="400px"
isModal={true}
visible={false}
>
<p>Are you sure you want to proceed with this action?</p>
</DialogComponent>
</div>
);
}
Delete action with confirmation buttons:
const buttons = [
{
buttonModel: { content: 'Delete', cssClass: 'e-flat e-danger', isPrimary: true },
click: () => { performDelete(); dialogRef.current?.hide(); }
},
{
buttonModel: { content: 'Cancel', cssClass: 'e-flat' },
click: () => dialogRef.current?.hide()
}
];
Dialog with form inputs and validation:
<DialogComponent header="Edit Profile" buttons={buttons} isModal={true} width="500px">
<div style={{ padding: '16px' }}>
<input type="text" placeholder="Name" className="form-control" />
<input type="email" placeholder="Email" className="form-control" />
<textarea placeholder="Bio" className="form-control"></textarea>
</div>
</DialogComponent>
Position dialog in center of screen:
<DialogComponent
header="Alert"
position={{ X: 'center', Y: 'center' }}
isModal={true}
showCloseIcon={true}
width="350px"
>
This dialog is centered on the screen.
</DialogComponent>
Non-modal, draggable properties panel:
<DialogComponent
header="Properties"
isModal={false}
allowDragging={true}
position={{ X: 200, Y: 150 }}
width="300px"
enableResize={true}
resizeHandles={['All']}
showCloseIcon={true}
>
Drag me around! I don't block the page.
</DialogComponent>
Dialog with Zoom animation:
<DialogComponent
header="Welcome"
animationSettings={{ effect: 'Zoom', duration: 400, delay: 0 }}
isModal={true}
position={{ X: 'center', Y: 'center' }}
width="400px"
>
This dialog zooms in smoothly!
</DialogComponent>
Custom footer instead of buttons:
<DialogComponent
header="Custom Footer"
isModal={true}
footerTemplate={
<div style={{ padding: '12px', textAlign: 'right' }}>
<button className="e-control e-btn e-primary" style={{ marginRight: '8px' }}>
Save
</button>
<button className="e-control e-btn">Cancel</button>
</div>
}
>
Dialog content with custom footer.
</DialogComponent>
Parent dialog containing child dialog:
const childDialogRef = useRef(null);
<DialogComponent header="Parent" isModal={true} width="400px">
<button onClick={() => childDialogRef.current?.show()} className="e-control e-btn">
Open Child Dialog
</button>
<DialogComponent
ref={childDialogRef}
header="Child"
isModal={true}
width="300px"
visible={false}
>
Nested dialog content
</DialogComponent>
</DialogComponent>
| Prop | Type | Description | Default | When to Use |
|---|---|---|---|---|
isModal | boolean | Enable modal mode (blocks parent interaction) | false | Confirmations, alerts, critical actions |
visible | boolean | Initial visibility state | false | Control initial dialog display |
header | string | JSX | Dialog header/title | - | Every dialog needs a title |
content | string | HTML | JSX | Dialog body content | - | Main dialog information |
buttons | ButtonPropsModel[] | Action buttons in footer | - | For OK/Cancel, action confirmations |
footerTemplate | JSX | Custom footer content | - | When buttons prop doesn't fit |
showCloseIcon | boolean | Show close button in header | false | Allow users to dismiss |
position | PositionData | X/Y positioning (center, top, etc.) | { X: 'center', Y: 'center' } | Custom placement |
allowDragging | boolean | Enable drag functionality | false | Movable dialogs, floating panels |
enableResize | boolean | Enable resize with grip | false | Resizable dialogs |
resizeHandles | ResizeDirections[] | Which edges/corners resize | ['All'] | Control resize behavior |
width | string | number | Dialog width | '330px' | Control dialog size |
height | string | number | Dialog height | 'auto' | Control dialog size |
minHeight | string | number | Minimum height | - | Prevent too-small resize |
animationSettings | AnimationSettingsModel | Animation effect/duration/delay | - | Smooth open/close transitions |
closeOnEscape | boolean | Close on Escape key press | true | Keyboard navigation |
target | string (selector) | Container element | document.body | Modal positioning |
enableHtmlSanitizer | boolean | Sanitize HTML content | true | Security (prevent XSS) |
cssClass | string | Custom CSS classes | - | Styling and theming |
enableRtl | boolean | Right-to-left rendering | false | RTL languages |
locale | string | Culture/language code | 'en-US' | Localization |
zIndex | number | Stack order | - | Manage overlapping dialogs |
enablePersistence | boolean | Persist state on reload | false | Remember size/position |
Next: Choose a reference based on what you need to implement. All references include working code examples, best practices, and troubleshooting guidance.
Syncfusion Predefined Dialogs are not component-based (<ejs-dialog>). They are opened
imperatively via the DialogUtility utility class:
| Dialog Type | Method |
|---|---|
| Alert | DialogUtility.alert({ ... }) |
| Confirm | DialogUtility.confirm({ ... }) |
| Prompt (input) | DialogUtility.confirm({ content: '<input .../>', ... }) |
Import: import { DialogUtility } from '@syncfusion/ej2-react-popups';
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import { DialogUtility } from '@syncfusion/ej2-react-popups';
import * as React from 'react';
function App() {
function showAlert() {
DialogUtility.alert({
title: 'Low Battery',
width: '250px',
content: '10% of battery remaining',
});
}
return <ButtonComponent cssClass="e-danger" onClick={showAlert}>Alert</ButtonComponent>;
}
export default App;
📄 Read: references/getting-started.md
@syncfusion/ej2-react-popups)📄 Read: references/animation.md
animationSettings property with effect, duration, delay📄 Read: references/draggable.md
isDraggable boolean property📄 Read: references/position.md
position property: { X, Y } — left|center|right / top|center|bottom or numeric offset📄 Read: references/dimension.md
width and height propertiescssClass for max-width / min-width constraints📄 Read: references/customization.md
okButton / cancelButton — custom text, icon, click handlershowCloseIcon and closeOnEscapecontent for prompt dialogs📄 Read: references/api.md
DialogUtility.alert() / confirm() option propertiestitle, content, width, height, position, animationSettings, isDraggable, okButton, cancelButton, showCloseIcon, closeOnEscape, cssClassAlert with OK callback:
const dialogObj = DialogUtility.alert({
title: 'Info',
content: 'Operation complete.',
okButton: { click: () => { dialogObj.hide(); } }
});
Confirm with Yes / No:
const dialogObj = DialogUtility.confirm({
title: 'Delete?',
content: 'Are you sure?',
width: '300px',
okButton: { text: 'Yes', click: () => { dialogObj.hide(); /* do delete */ } },
cancelButton: { text: 'No', click: () => { dialogObj.hide(); } }
});
Prompt (input capture):
const dialogObj = DialogUtility.confirm({
title: 'Enter Name',
content: '<p>Your name:</p><input id="nameInput" class="e-input" placeholder="Type here..." />',
width: '300px',
okButton: {
text: 'Submit',
click: () => {
const val = (document.getElementById('nameInput') as HTMLInputElement).value;
dialogObj.hide();
}
},
cancelButton: { click: () => dialogObj.hide() }
});
A comprehensive skill for implementing the Syncfusion React TooltipComponent — covering setup, content strategies, positioning, open modes, animation, customization, accessibility, and advanced how-to patterns.
Package: @syncfusion/ej2-react-popups
Import: import { TooltipComponent } from '@syncfusion/ej2-react-popups';
npm install @syncfusion/ej2-react-popups --save
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-react-popups/styles/tailwind3.css";
import * as React from 'react';
import { TooltipComponent } from '@syncfusion/ej2-react-popups';
import './App.css';
function App() {
return (
<TooltipComponent content="Tooltip Content" position="TopCenter">
<button className="e-btn">Show Tooltip</button>
</TooltipComponent>
);
}
export default App;
📄 Read: references/getting-started.md
target prop)title attribute as fallback content📄 Read: references/content.md
beforeRender event)dataBind()📄 Read: references/position.md
TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight, LeftTop, LeftCenter, LeftBottom, RightTop, RightCenter, RightBottom)showTipPointer) and positioning (tipPointerPosition: Auto, Start, Middle, End)refresh() method (draggable targets)mouseTrail)offsetX, offsetY)windowCollision)📄 Read: references/open-mode.md
Auto, Hover, Click, Focus, Custom modes via opensOnopensOn="Hover Click")isSticky) — close button appearsopenDelay, closeDelay)open() and close() methods📄 Read: references/animation.md
animation property (open/close AnimationModel)open() and close() methods programmaticallybeforeRender + CSS transitions📄 Read: references/customization.md
cssClass for custom themes and styleswidth, height) and scroll modeenableRtl)📄 Read: references/how-to.md
destroy() and render()📄 Read: references/accessibility.md
role="tooltip", aria-describedby, aria-hidden)📄 Read: references/api.md
TooltipAnimationSettings, TooltipEventArgs typesPosition and TipPointerPosition enum values<TooltipComponent content="Submit the form" position="TopCenter">
<button className="e-btn e-primary">Submit</button>
</TooltipComponent>
// Single TooltipComponent handles all .e-info targets;
// each uses its own `title` attribute as content
<TooltipComponent target=".e-info" position="RightCenter">
<form>
<input className="e-info" type="text" title="Enter your name" />
<input className="e-info" type="email" title="Enter a valid email" />
</form>
</TooltipComponent>
<TooltipComponent
content="Click the × to close me"
opensOn="Click"
isSticky={true}
position="BottomCenter"
>
<button className="e-btn">Click Me</button>
</TooltipComponent>
import * as React from 'react';
import { TooltipComponent } from '@syncfusion/ej2-react-popups';
function App() {
let tooltipRef: TooltipComponent;
const target = React.useRef<HTMLButtonElement>(null);
return (
<TooltipComponent
ref={t => (tooltipRef = t)}
content="Tooltip opened programmatically"
opensOn="Custom"
>
<button
ref={target}
className="e-btn"
onClick={() => {
if (target.current.getAttribute('data-tooltip-id')) {
tooltipRef.close();
} else {
tooltipRef.open(target.current);
}
}}
>
Toggle Tooltip
</button>
</TooltipComponent>
);
}
<TooltipComponent
content="Following your mouse!"
mouseTrail={true}
showTipPointer={false}
>
<div style={{ width: '200px', height: '100px', background: '#eee' }}>
Hover over me
</div>
</TooltipComponent>
| Prop | Type | Default | Purpose |
|---|---|---|---|
content | string | HTMLElement | Function | — | Tooltip text, HTML, or JSX template |
target | string | — | CSS selector for multi-target mode |
position | Position | 'TopCenter' | 12 placement values |
opensOn | string | 'Auto' | Hover / Click / Focus / Custom |
isSticky | boolean | false | Keep visible until user closes |
mouseTrail | boolean | false | Follow mouse cursor |
showTipPointer | boolean | true | Show/hide arrow tip |
tipPointerPosition | TipPointerPosition | 'Auto' | Auto / Start / Middle / End |
openDelay | number | 0 | ms delay before opening |
closeDelay | number | 0 | ms delay before closing |
offsetX / offsetY | number | 0 | Distance from target (px) |
width / height | string | number | 'auto' | Tooltip dimensions |
cssClass | string | null | Custom CSS class |
animation | AnimationModel | FadeIn/FadeOut 150ms | Open/close animation |
enableRtl | boolean | false | Right-to-left rendering |
enableHtmlSanitizer | boolean | true | Sanitize HTML content |
container | string | HTMLElement | body | Popup append target |
windowCollision | boolean | false | Collision vs viewport |
references/dialog-advanced-patterns.md (opens in a new tab)references/dialog-animation-effects.md (opens in a new tab)references/dialog-api-reference.md (opens in a new tab)references/dialog-buttons-and-actions.md (opens in a new tab)references/dialog-getting-started.md (opens in a new tab)references/dialog-localization-and-accessibility.md (opens in a new tab)references/dialog-modal-vs-modeless.md (opens in a new tab)references/dialog-positioning-and-dragging.md (opens in a new tab)references/dialog-templates-and-content.md (opens in a new tab)references/predefineddialog-animation.md (opens in a new tab)references/predefineddialog-api.md (opens in a new tab)references/predefineddialog-customization.md (opens in a new tab)references/predefineddialog-dimension.md (opens in a new tab)references/predefineddialog-draggable.md (opens in a new tab)references/predefineddialog-getting-started.md (opens in a new tab)references/predefineddialog-position.md (opens in a new tab)references/tooltip-accessibility.md (opens in a new tab)references/tooltip-animation.md (opens in a new tab)references/tooltip-api.md (opens in a new tab)references/tooltip-content.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