syncfusion-blazor-common
Set up Syncfusion Blazor components — project creation, NuGet packages, service registration, script loading, bUnit testing, and localization & globalization configuration
How do I install this agent skill?
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-commonIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides legitimate instructions and references for setting up Syncfusion Blazor components. All external resources, including CDN links and GitHub repositories, belong to the verified vendor (Syncfusion) or are standard industry tools like bUnit. No malicious patterns or security risks were detected.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Syncfusion Blazor Getting Started
Setup and configuration guide for Syncfusion Blazor components in Blazor Web Apps.
When to Use
Use this skill when you need to:
- Set up a new Blazor project with Syncfusion Blazor components
- Create a Blazor Web App with specific .NET version targeting (net8.0, net9.0, net10.0, etc.)
- Add Syncfusion components (Grid, Button, etc.) with features based on context
- Optimize script loading with static assets or CDN
- Set up bUnit testing for Syncfusion components
Quick Reference
- Getting Started: See getting-started.md for full project setup steps
- Scripts & CDN: See add-script-reference-and-cdn.md for script loading options
- bUnit Testing: See bunit-setup.md for unit testing setup
- Localization & Globalization: See localization-globalization.md for culture and localization setup
Prerequisites
- .NET 8+ SDK
- Blazor Web App project
- Syncfusion account (free trial)
- NuGet package access
1. Getting Started
Detailed guide: getting-started.md
Quick Setup
- Create Blazor Web App with your chosen render mode and explicit .NET version (e.g.,
.NET 10) - Install
Syncfusion.Blazor.Grid+Syncfusion.Blazor.ThemesNuGet packages. All individual packages are listed here - Add
@using Syncfusion.Blazorand relevant component namespaces to_Imports.razor - Register
builder.Services.AddSyncfusionBlazor()inProgram.cs - Add theme CSS and script references to
App.razor - Use Syncfusion components in your pages
Key Rule: For Auto/WASM modes → register in both server and client projects Important: Always specify the target .NET framework version when creating projects to ensure compatibility
Quick Start Options
- Blazor Playground: Browser-based, no local install
- Template Studio: Pre-configured VS/VS Code project templates
2. Script References and CDN
Detailed guide: add-script-reference-and-cdn.md
Script Loading Options
| Method | Best For |
|---|---|
| Static Web Assets (Recommended) | Optimal performance, offline support |
| CDN | Cloud-hosted, quick setup |
| Individual Scripts | Minimal component usage |
3. bUnit Testing
Detailed guide: bunit-setup.md
Unit test Syncfusion Blazor components with bUnit.
Required Setup
Install bunit NuGet package, then register in each test:
using var ctx = new TestContext();
ctx.Services.AddSyncfusionBlazor()
.Replace(ServiceDescriptor.Transient<IComponentActivator, SfComponentActivator>());
ctx.Services.AddOptions();
Test Pattern
RenderComponent<TPage>()→ renderFindComponent<SfButton>()→ locate.Click()→ interactMarkupMatches(...)→ assert
Works with xUnit and NUnit (use Bunit.TestContext for NUnit to avoid naming conflicts)
4. Localization and Globalization
Detailed guide: localization-globalization.md
Configure multi-language support and culture-specific formatting for Syncfusion Blazor components.
Key Concepts
- Internationalization (i18n): Parsing and formatting dates, times, numbers, and currencies
- Localization (l10n): Adding culture-specific customizations and translating UI text
- Globalization: Combines both i18n and l10n
Quick Setup
- Download and add culture-based
.resxresource files from GitHub - ASK PERMISSION BEFORE DOWNLOAD THIS - Create a
SyncfusionLocalizerclass implementingISyncfusionStringLocalizer - Register in
Program.cs:builder.Services.AddSyncfusionBlazor(); builder.Services.AddSingleton(typeof(ISyncfusionStringLocalizer), typeof(SyncfusionLocalizer)); - Set culture statically or dynamically (server, WebAssembly, or MAUI apps)
- Create a
CultureSwitchercomponent for dynamic culture selection
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/syncfusion/blazor-ui-components-skills/syncfusion-blazor-common">View syncfusion-blazor-common on skillZs</a>