
syncfusion-react-inline-ai-assist
Implement the Syncfusion React Inline AI Assist component. Use this skill to add inline AI suggestions, integrate AI services such as OpenAI, Gemini, Lite-LLM, or Ollama, configure command and response actions, customize toolbars, enable built-in Speech-to-Text, handle events, and support real-time prompt-response workflows in React.
- Installs
- 701
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-inline-ai-assist- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-react-inline-ai-assist automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Syncfusion React Syncfusion React Inline AI Assist Component
Component Overview
The Inline AI Assist component provides intelligent text processing capabilities for your React applications. It enables AI-powered suggestions, content generation, and interactive prompt-response workflows with support for multiple AI service integrations.
Key Capabilities
- Multi-AI Service Integration: Connect to OpenAI, Google Gemini, Lite-LLM, and Ollama for flexible AI backend options
- Real-Time Response Streaming: Enable
enableStreamingfor progressive response updates during content generation - Command & Response Actions: Configure predefined commands for quick AI tasks and custom response actions
- Inline Toolbar: Add custom toolbar items with icons, buttons, and separators for enhanced user interactions
- Inline & Popup Modes: Display AI responses inline with existing content or in a floating popup window
- Flexible Template Customization: Customize prompt input and response display using string, function, or JSX templates
- Built-in Speech-to-Text: Enable the Web Speech API microphone button via
speechToTextSettingswith language, interim results, custom labels/icons, tooltips, and lifecycle events - Internationalization (i18n) & RTL: Support for multiple languages and right-to-left text direction
- Event Handling: Lifecycle events including
created,promptRequest,open, andclosefor precise control - Public Methods: Programmatic access with
addResponse(),executePrompt(),showPopup(), and more - Prompt History: Track prompt-response conversations with persistent history management
- Accessibility & Theming: Compatible with Material, Bootstrap, Fluent, and Tailwind CSS themes
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- Installation via npm
- CSS theme imports (Material, Bootstrap, Fluent, Tailwind)
- Component rendering
- Custom styling with
cssClassproperty - Running your first example
Template Customization
📄 Read: references/template-customization.md
editorTemplateproperty: Customize prompt input arearesponseTemplateproperty: Customize response display- String templates, function templates, JSX.Element templates
- Rich text editor integration
- Custom voice input integration (inside
editorTemplate)- Code syntax highlighting - Markdown rendering
Speech-to-Text
📄 Read: references/speech-to-text.md
- Enable built-in Speech-to-Text via
speechToTextSettings.enable - Configure the recognition language with the
langproperty (en-US,es-ES,fr-FR, etc.) - Customize the microphone button with
buttonSettings(content,stopContent,iconCss,stopIconCss) - Stream partial transcripts in real time with
allowInterimResults: true - Customize idle/recording tooltips with
tooltipSettings(content,stopContent) - Hook into the recognition lifecycle with
onStart,onStop,transcriptChanged, andonError - Use
SpeechToTextSettingsModeland the Web Speech API for cross-browser voice input - Build an accessible status panel that surfaces recording state, live transcript, and errors
Internationalization (i18n) and RTL
📄 Read: references/internationalization.md
localeproperty: Set language and regional formattingenableRtlproperty: Enable right-to-left text direction- Available locale codes and setup
- Arabic, Hebrew, Persian support
- Multi-language applications
- Browser language detection
- Custom localization strings
Positioning and Targeting
📄 Read: references/positioning-and-targeting.md
relateToproperty: Position relative to DOM elementstargetproperty: Specify where to append the componentresponseModeproperty: Inline vs Popup display modes- Practical positioning scenarios
Command Settings
📄 Read: references/command-settings.md
- Configure command items for quick actions
- Command properties: id, label, iconCss, disabled, prompt, tooltip
- Group commands with
groupByproperty - Handle
itemSelectevents - Set popup dimensions
Response Settings
📄 Read: references/response-settings.md
- Built-in response items (accept, reject)
- Adding custom response actions
- Response item properties and configuration
- Group response items with
groupBy - Handle response
itemSelectevents
Inline Toolbar Customization
📄 Read: references/inline-toolbar.md
- Configure toolbar items (buttons, separators, inputs)
- Built-in items and custom items
- Item properties: text, iconCss, type, visible, disabled, align
- Tab key navigation with
tabIndex - Custom item templates
- Toolbar positioning: Inline vs Bottom
itemClickevent handling with complete event args
Events
📄 Read: references/events.md
createdevent: Component render completepromptRequestevent: Prompt submitted by useropenevent: Popup openedcloseevent: Popup closed- Event handler patterns and examples
Methods
📄 Read: references/methods.md
addResponse(response): Add AI response to componentexecutePrompt(prompt): Execute prompt dynamicallyshowPopup(coordinates): Open the popuphidePopup(): Close the popupshowCommandPopup(): Show command actionshideCommandPopup(): Hide command actions
AI Service Integrations
📄 Read: references/ai-integrations.md
enableStreamingproperty: Real-time response streaming- OpenAI API integration with streaming
- Google Gemini AI integration with streaming
- Lite-LLM service integration
- Ollama local LLM integration with streaming
- API credential setup
- Prompt handling and response streaming
- Performance optimization and error handling
Quick Start
import { InlineAIAssistComponent } from '@syncfusion/ej2-react-interactive-chat';
import React from 'react';
function App() {
const assistRef = React.useRef(null);
const handlePromptRequest = () => {
// Simulate AI response
setTimeout(() => {
const response = 'Your AI-generated response here';
assistRef.current?.addResponse(response);
}, 1000);
};
const handleShowPopup = () => {
assistRef.current?.showPopup();
};
return (
<div>
<button onClick={handleShowPopup} className="e-btn e-primary">
Ask AI
</button>
<InlineAIAssistComponent
id="inlineAssist"
ref={assistRef}
relateTo="button"
promptRequest={handlePromptRequest}
popupWidth="500px"
/>
</div>
);
}
export default App;
Common Patterns
Pattern 1: AI-Assisted Text Editing
Combine the component with a contentEditable div to enable AI-powered suggestions while editing:
const handleResponseItemSelect = (args) => {
if (args.command.label === 'Accept') {
const lastResponse = assistRef.current.prompts?.[assistRef.current.prompts.length - 1]?.response;
if (lastResponse && editableRef.current) {
editableRef.current.innerHTML = lastResponse;
}
}
};
<InlineAIAssistComponent
responseSettings={{
itemSelect: handleResponseItemSelect
}}
/>
Pattern 2: Command-Based Actions
Set up predefined commands for common AI tasks:
const commandSettings = {
commands: [
{ id: 'summarize', label: 'Summarize', iconCss: 'e-icons e-compress', prompt: 'Summarize this text' },
{ id: 'expand', label: 'Expand', iconCss: 'e-icons e-expand', prompt: 'Expand this text' },
{ id: 'fix', label: 'Fix Grammar', iconCss: 'e-icons e-check-box', prompt: 'Fix grammar and spelling' }
]
};
<InlineAIAssistComponent commandSettings={commandSettings} />
Pattern 3: Custom Toolbar Actions
Add custom toolbar items to trigger component methods:
const handleToolbarItemClick = (args) => {
if (args.item.id === 'customAction') {
assistRef.current?.executePrompt('User-defined prompt');
}
};
const inlineToolbarSettings = {
items: [
{ id: 'customAction', text: 'Custom', iconCss: 'e-icons e-settings' }
],
itemClick: handleToolbarItemClick
};
Pattern 4: Response Display Modes
Switch between inline editing and popup responses:
// Inline mode: Response appears inline
<InlineAIAssistComponent responseMode="Inline" />
// Popup mode: Response in floating popup
<InlineAIAssistComponent responseMode="Popup" popupWidth="400px" />
Pattern 5: Lifecycle Management
Use events to coordinate component state:
const handleCreated = () => {
console.log('Component initialized');
};
const handlePromptRequest = (args) => {
console.log('Prompt submitted:', args.prompt);
};
<InlineAIAssistComponent
created={handleCreated}
promptRequest={handlePromptRequest}
open={() => console.log('Popup opened')}
close={() => console.log('Popup closed')}
/>
Pattern 6: Voice-Driven Inline Assistant
Enable the built-in Web Speech API microphone button to let users dictate prompts:
const speechToTextSettings = {
enable: true,
lang: 'en-US',
allowInterimResults: true,
buttonSettings: {
content: 'Start Recording',
stopContent: 'Stop Recording',
iconCss: 'e-icons e-microphone',
stopIconCss: 'e-icons e-microphone-off'
},
tooltipSettings: {
content: 'Click to start recording',
stopContent: 'Click to stop recording'
}
};
<InlineAIAssistComponent speechToTextSettings={speechToTextSettings} />
onStartfires when recognition begins,onStopwhen it endstranscriptChangedstreams interim + final transcripts to a status panelonErrorsurfaces browser/network/mic errors to the user- The recognized prompt is injected into the standard
promptRequestevent, so existing AI service handlers keep working unchanged
Key Configuration Properties
| Property | Type | Default | Purpose |
|---|---|---|---|
editorTemplate | string | function | JSX.Element | '' | Custom prompt input template |
responseTemplate | string | function | JSX.Element | '' | Custom response display template |
enableStreaming | boolean | false | Enable real-time response streaming |
locale | string | 'en-US' | Language and regional formatting |
enableRtl | boolean | false | Enable right-to-left text direction |
enablePersistence | boolean | false | Persist component state across reloads |
cssClass | string | '' | Custom CSS classes for styling |
relateTo | string | HTMLElement | - | Position component relative to element |
target | string | HTMLElement | 'body' | Specify append target |
responseMode | string | 'Popup' | 'Inline' or 'Popup' |
popupWidth | string | number | '400px' | Popup width (CSS value) |
popupHeight | string | number | 'auto' | Popup height |
zIndex | number | 1000 | Popup z-index |
placeholder | string | 'Ask or generate AI content..' | Prompt textarea placeholder |
prompt | string | '' | Default prompt text |
prompts | array | [] | Prompt-response collection |
commandSettings | CommandSettingsModel | null | Command configuration |
responseSettings | ResponseSettingsModel | null | Response action configuration |
inlineToolbarSettings | InlineToolbarSettingsModel | null | Toolbar customization |
speechToTextSettings | SpeechToTextSettingsModel | null | Built-in Web Speech API microphone button (enable, lang, allowInterimResults, buttonSettings, tooltipSettings, onStart, onStop, transcriptChanged, onError) |
For complete examples and advanced scenarios, explore individual reference files above.
FAQ
What does the syncfusion-react-inline-ai-assist skill do?
Implement the Syncfusion React Inline AI Assist component. Use this skill to add inline AI suggestions, integrate AI services such as OpenAI, Gemini, Lite-LLM, or Ollama, configure command and response actions, customize toolbars, enable built-in Speech-to-Text, handle events, and support real-time prompt-response workflows in React.
How do I install syncfusion-react-inline-ai-assist?
Run npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-inline-ai-assist in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-react-inline-ai-assist/ (personal) or .claude/skills/syncfusion-react-inline-ai-assist/ (project).
Which AI agents can use syncfusion-react-inline-ai-assist?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-react-inline-ai-assist safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-react-inline-ai-assist?
It is published by syncfusion in syncfusion/react-ui-components-skills. It has 701 recorded installs.
More from syncfusion/react-ui-components-skills
syncfusion-react-grid
syncfusion/react-ui-components-skills
Implements Syncfusion React Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.
syncfusion-react-scheduler
syncfusion/react-ui-components-skills
Implement Syncfusion React Scheduler component for calendar, event scheduling, and appointment management. Use this when building scheduling systems, calendar applications, booking systems, or time management interfaces. Covers all scheduler views (Day, Week, Month, Timeline, Agenda, Year), data binding, resource scheduling, recurring events, CRUD operations, drag-and-drop scheduling, customization, accessibility, and advanced features.
syncfusion-react-gantt-chart
syncfusion/react-ui-components-skills
Implement, configure, and customize the Syncfusion React Gantt Chart component. Use this when building project scheduling applications with task timelines, dependencies, resource management, and calendar-driven scheduling. Covers GanttComponent setup, task constraints, taskbar customization, filtering, sorting, Excel/PDF export, critical path analysis, milestones, predecessors, resource view, baseline tracking, and task calendar configuration.
syncfusion-react-rich-text-editor
syncfusion/react-ui-components-skills
Implements the Syncfusion React Rich Text Editor (RichTextEditorComponent) from ej2-react-richtexteditor, supporting HTML (WYSIWYG) and Markdown editing. Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in React applications.
syncfusion-react-charts
syncfusion/react-ui-components-skills
Implement Syncfusion React Charts component for data visualization. Use this when creating charts, configuring axes and series, or customizing visualization styles. This skill covers chart types, data binding, user interactions, financial indicators, accessibility features, and professional data visualization in React applications.
syncfusion-react-treegrid
syncfusion/react-ui-components-skills
Implements Syncfusion React TreeGrid for hierarchical data with sorting, filtering, editing, exporting, paging, virtual scrolling, and advanced features. Supports configuration, CRUD, aggregates, templates, state persistence, and performance optimization in React applications.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.