
Syncfusion Blazor Smart Paste
- 232 installs
- 4 repo stars
- Updated July 28, 2026
- syncfusion/blazor-ui-components-skills
Use syncfusion-blazor-smart-paste for development tasks
About
syncfusion-blazor-smart-paste: A skill for development. This provides functionality for development workflows.
- syncfusion-blazor-smart-paste
Syncfusion Blazor Smart Paste by the numbers
- 232 all-time installs (skills.sh)
- +13 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #1,651 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-smart-pasteAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 232 |
|---|---|
| repo stars | ★ 4 |
| Last updated | July 28, 2026 |
| Repository | syncfusion/blazor-ui-components-skills ↗ |
What it does
Use syncfusion-blazor-smart-paste for development tasks
Files
Syncfusion Blazor Smart Paste Button
The Syncfusion Blazor Smart Paste Button uses AI to intelligently read clipboard text and populate form fields automatically, eliminating manual data entry.
When to Use
Use this skill when you need to:
- Add the Smart Paste Button to a Blazor form for AI-powered clipboard-to-field population
- Configure an AI backend (OpenAI, Azure OpenAI, Ollama, or custom)
- Add
[SmartPasteField]annotations to fine-tune field mapping - Customize button appearance, content, and behavior
- Integrate a custom
IChatInferenceServiceimplementation - Troubleshoot Smart Paste integration or AI connectivity issues
Prerequisites
- .NET SDK 8.0 or later
- Visual Studio 2022 (17.0+) or Visual Studio Code
- Active OpenAI, Azure OpenAI, or Ollama account (or a custom AI backend)
- Basic knowledge of Blazor Web App (Server render mode)
Quick Setup
Follow these steps in order:
1. Initial Setup and NuGet Installation
Start with getting-started.md to:
- Create a new Blazor Web App Server
- Install Syncfusion NuGet packages
- Register Syncfusion Blazor services
- Add necessary namespaces
2. Configure AI Service
Proceed here to Custom AI Integration Steps to:
- Choose your AI provider (OpenAI, Azure OpenAI, or Ollama)
- Install AI service-specific NuGet packages
- Configure your AI backend in
Program.cs - Add theme stylesheets and script resources
3. Implement and Customize
Complete with implementation-and-customization.md to:
- Add the Smart Paste Button component to your form
- Run and test the application
- Add custom field annotations
- Customize button appearance
- Integrate custom AI services
- Troubleshoot common issues
Key Features
| Feature | Details |
|---|---|
| AI-Powered Form Filling | Reads clipboard text and maps data to form fields automatically |
| Multiple AI Backends | OpenAI, Azure OpenAI, Ollama, and custom IChatInferenceService |
| Field Annotations | [SmartPasteField] attribute for precise field descriptions |
| Easy Integration | Single NuGet package + AddSyncfusionSmartPaste() service call |
| Customizable UI | Inherits all SfButton properties — icons, content, CSS classes |
NuGet Packages
Syncfusion.Blazor.SmartComponents(v28.1.33+)Syncfusion.Blazor.Themes- AI provider package — see ai-service-configuration.md
Reference Documents
| Document | Purpose |
|---|---|
| getting-started.md | Project creation, NuGet installation, service registration |
| ai-service-configuration.md | AI provider setup (OpenAI, Azure OpenAI, Ollama) |
| implementation-and-customization.md | Component usage, field annotations, customization, troubleshooting |
Syncfusion Blazor Smart Paste Button - Setup Guide
Overview
The Syncfusion Blazor Smart Paste Button is a component that leverages AI to intelligently populate form fields from copied text, streamlining user input workflows.
Prerequisites
Before getting started, ensure you have the following:
- .NET SDK 8.0 or later
- Visual Studio 2022 (version 17.0 or later) or Visual Studio Code
- OpenAI or Azure OpenAI account (for AI capabilities)
- Knowledge of Blazor Server Interactivity mode
- Refer to System requirements for Syncfusion Blazor components
Important Notes
NOTE: Syncfusion Blazor Smart Components support both OpenAI and Azure OpenAI and are compatible with Blazor Server Interactivity mode.
Create a New Blazor Web App Server
Create a Blazor Web App using Visual Studio 2022 with:
- Microsoft Templates - Standard project templates
- Syncfusion Blazor Extension - For quick setup
Configure the app with the Server interactive render mode.
Install NuGet Packages
Syncfusion Smart Components and Themes
Install the following NuGet packages:
Using NuGet Package Manager:
Tools → NuGet Package Manager → Manage NuGet Packages for SolutionSearch for and install:
Syncfusion.Blazor.SmartComponentsSyncfusion.Blazor.Themes
Using Package Manager Console:
Install-Package Syncfusion.Blazor.SmartComponents -Version 33.1.44
Install-Package Syncfusion.Blazor.Themes -Version 33.1.44Optional: DataForm Component
For managing form input fields, install:
Install-Package Syncfusion.Blazor.DataFormRegister Syncfusion Blazor Service
Update _Imports.razor
Open ~/Components/_Imports.razor and add the following namespaces:
@using Syncfusion.Blazor
@using Syncfusion.Blazor.SmartComponentsUpdate Program.cs
Register the Syncfusion Blazor service in ~/Program.cs:
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Syncfusion.Blazor;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSyncfusionBlazor();
var app = builder.Build();
// ... rest of configurationSyncfusion Blazor Smart Paste Button - Usage and Customization Guide
Overview
This guide covers implementing the Smart Paste Button component, adding annotations, customizing appearance, integrating custom AI services, and troubleshooting. Ensure you've completed setup and configuration from getting-started.md and ai-service-configuration.md.
Add Smart Paste Button Component
Add the Syncfusion Blazor Smart Paste Button component with form components in ~/Pages/Index.razor:
@using Syncfusion.Blazor.DataForm
@using System.ComponentModel.DataAnnotations
@using Syncfusion.Blazor.SmartComponents
<SfDataForm ID="MyForm"
Model="@EventRegistrationModel">
<FormValidator>
<DataAnnotationsValidator></DataAnnotationsValidator>
</FormValidator>
<FormItems>
<FormItem Field="@nameof(EventRegistration.Name)" ID="firstname"></FormItem>
<FormItem Field="@nameof(EventRegistration.Email)" ID="email"></FormItem>
<FormItem Field="@nameof(EventRegistration.Phone)" ID="phonenumber"></FormItem>
<FormItem Field="@nameof(EventRegistration.Address)" ID="address"></FormItem>
</FormItems>
<FormButtons>
<SfSmartPasteButton IsPrimary="true" Content="Smart Paste" IconCss="e-icons e-paste">
</SfSmartPasteButton>
</FormButtons>
</SfDataForm>
<br>
<h4 style="text-align:center;">Sample content</h4>
<div>
Hi, my name is Jane Smith. You can reach me at example@domain.com or call me at +1-555-987-6543. I live at 789 Pine Avenue, Suite 12, Los Angeles, CA 90001.
</div>
@code {
private EventRegistration EventRegistrationModel = new EventRegistration();
public class EventRegistration
{
[Required(ErrorMessage = "Please enter your name.")]
[Display(Name = "Name")]
public string Name { get; set; }
[Required(ErrorMessage = "Please enter your email address.")]
[Display(Name = "Email ID")]
public string Email { get; set; }
[Required(ErrorMessage = "Please enter your mobile number.")]
[Display(Name = "Phone Number")]
public string Phone { get; set; }
[Required(ErrorMessage = "Please enter your address.")]
[Display(Name = "Address")]
public string Address { get; set; }
}
}Running the Application
To test the Smart Paste Button:
1. Press Ctrl+F5 (Windows) or ⌘+F5 (macOS) to launch the application 2. Copy the Sample Content from the page 3. Click the Smart Paste button 4. Observe form fields automatically populated with the analyzed data
Annotations and Custom Field Descriptions
Using data-smartpaste-description Attribute
By default, the Smart Paste Button analyzes form fields like <input>, <select>, and <textarea> elements, generating descriptions based on associated <label>, name attribute, id attribute, or nearby text content.
For more control, override the default behavior by specifying custom descriptions using the data-smartpaste-description attribute:
@using Syncfusion.Blazor.DataForm
@using System.ComponentModel.DataAnnotations
@using Syncfusion.Blazor.SmartComponents
@using Syncfusion.Blazor.Inputs
<SfDataForm ID="MyForm"
Model="@EventRegistrationModel">
<FormValidator>
<DataAnnotationsValidator></DataAnnotationsValidator>
</FormValidator>
<FormItems>
<FormItem Field="@nameof(EventRegistration.Name)" ID="firstname"></FormItem>
<FormItem Field="@nameof(EventRegistration.DateOfBirth)">
<Template>
<label class="e-form-label">Date of Birth</label>
<SfTextBox HtmlAttributes="DateOfBirth"
ID="dateofbirth" />
</Template>
</FormItem>
<FormItem Field="@nameof(EventRegistration.Email)" ID="email"></FormItem>
<FormItem Field="@nameof(EventRegistration.Phone)" ID="phonenumber"></FormItem>
<FormItem Field="@nameof(EventRegistration.Address)" ID="address"></FormItem>
</FormItems>
<FormButtons>
<SfSmartPasteButton IsPrimary="true" Content="Smart Paste" IconCss="e-icons e-paste">
</SfSmartPasteButton>
</FormButtons>
</SfDataForm>
<br>
<h4 style="text-align:center;">Sample content</h4>
<div>
Hi, my name is Jane Smith. You can reach me at example@domain.com or call me at +1-555-987-6543. I live at 789 Pine Avenue, Suite 12, Los Angeles, CA 90001. I was born on 15th March 1990.
</div>
@code {
private EventRegistration EventRegistrationModel = new EventRegistration();
Dictionary<string, object> DateOfBirth = new Dictionary<string, object>()
{
{ "data-smartpaste-description", "Date must follow the format: DD-MM-YYYY" }
};
public class EventRegistration
{
[Required(ErrorMessage = "Please enter your name.")]
[Display(Name = "Name")]
public string Name { get; set; }
[Required(ErrorMessage = "Please enter your email address.")]
[Display(Name = "Email ID")]
public string Email { get; set; }
[Required(ErrorMessage = "Please enter your mobile number.")]
[Display(Name = "Phone Number")]
public string Phone { get; set; }
[Required(ErrorMessage = "Please enter your address.")]
[Display(Name = "Address")]
public string Address { get; set; }
[Required(ErrorMessage = "Please enter your DOB.")]
[Display(Name = "Date Of Birth")]
public string DateOfBirth { get; set; }
}
}Customization
Types and Appearance
The Syncfusion Blazor Smart Paste Button fully inherits all properties, types, and styling options of the Syncfusion Blazor Button component.
You can leverage:
- Types and Styles - Refer to Syncfusion Blazor Button Types and Styles
- Appearances - Refer to Syncfusion Blazor Button Appearances
Custom AI Service Integration
IChatInferenceService Interface
Implement custom AI services using the IChatInferenceService interface:
public interface IChatInferenceService
{
Task<string> GenerateResponseAsync(ChatParameters options);
}The GenerateResponseAsync method takes ChatParameters (containing clipboard data and form field metadata) and returns a string response for populating form fields.
Sample Custom AI Service Implementation
Below is a mock AI service example:
using Syncfusion.Blazor.AI;
using System.Threading.Tasks;
public class MockAIService : IChatInferenceService
{
public Task<string> GenerateResponseAsync(ChatParameters options)
{
// Implement custom AI logic here
// Return formatted response for form fields
}
}Register Custom AI Service
Register the custom AI service in ~/Program.cs:
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Syncfusion.Blazor;
using Syncfusion.Blazor.AI;
using Syncfusion.Blazor.SmartComponents;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSyncfusionBlazor();
builder.Services.AddSyncfusionSmartComponents();
builder.Services.AddSingleton<IChatInferenceService, MockAIService>();
var app = builder.Build();
// ... rest of configurationTesting Custom AI Integration
1. Configure the Blazor Web App with Smart Paste Button and custom AI service 2. Add the implementation to your Razor files 3. Run the application (Ctrl+F5 or ⌘+F5) 4. Copy sample content and click Smart Paste button 5. Verify form fields populate correctly
Examples of Implemented AI Services
The following AI services can be integrated using the IChatInferenceService interface:
| AI Service | Integration |
|---|---|
| Claude | Claude Integration |
| DeepSeek | DeepSeek Integration |
| Groq | Groq Integration |
| Gemini | Gemini Integration |
Performance Considerations
For optimal performance with the Smart Paste Button:
- Use Lightweight AI Models: Choose models like
gpt-3.5-turboormistral:7bfor faster processing - Limit Form Complexity: Reduce the number of form fields being analyzed to minimize AI parsing time, especially for large datasets
- Cache AI Model Responses: Implement caching where possible to minimize repeated API calls to the AI service
- Monitor API Costs: Be aware of usage patterns to manage costs with external AI APIs
Troubleshooting Common Issues
AI Service Configuration Errors
Problem: Smart Paste button not working with AI service Solution:
- Verify the API key, endpoint, and model name in
Program.cs - Check for typos or incorrect values
- Ensure proper spacing and formatting
Network Failures
Problem: Connection errors when using OpenAI or Azure OpenAI Solution:
- Ensure a stable internet connection
- For Ollama, confirm the local server is running at the specified endpoint (e.g.,
http://localhost:11434) - Check firewall and proxy settings
Form Not Populating
Problem: Data from clipboard not appearing in form fields Solution:
- Confirm that the copied text matches the form field structure
- Verify the AI model is correctly configured
- Check that form field IDs and labels are properly set
- Test the AI service independently to verify connectivity
- Review browser console for JavaScript errors
Service Registration Errors
Problem: Dependency injection errors at startup Solution:
- Confirm
CustomAIServiceis registered inProgram.csafterAddSyncfusionBlazor - Verify all required interfaces are properly implemented
- Check NuGet package versions match the dependencies
Custom AI Service Issues
Problem: Custom AI integration not working Solution:
- Verify endpoint, model, and API key in configuration
- Ensure
GenerateResponseAsyncreturns valid data - Check the AI service's response format matches expected structure
- Test the API independently