use-igniteui-blazor
できること
このスキルは、パッケージ、起動時の設定、スタイルを含めて、Ignite UI for BlazorのコンポーネントライブラリをBlazorのアプリに追加します。入力欄、コンボボックス、グリッドのような既製のUIのコントロールがほしい.NETの開発者のためのものです。
使う場面
- ✓Ignite UI for Blazorのコントロールを、Blazorのアプリに追加したいとき。
- ✓Blazor Server、WebAssembly、またはWebアプリのプロジェクトに、Liteパッケージを設定する必要があるとき。
- ✓テーマのスタイルシートやグリッドのスタイルを配線する必要があるとき。
スキルのリンク
https://github.com/dotnet/skills/blob/main/plugins/dotnet-blazor/skills/use-igniteui-blazor/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のBlazor Serverのアプリに、Ignite UIのLiteの入力とコンボのコンポーネントを追加して、テーマを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはプロジェクトのパッケージとフレームワークのバージョンを確認し、Liteパッケージを追加し、起動時にサービスを登録して、スタイルシートとインポートを配線します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Application Setup & Component Registration
1. NuGet package
Before adding packages, inspect the target projects' target framework and existing package references. The lowest supported target framework version is .NET 8.0. If IgniteUI.Blazor or IgniteUI.Blazor.Trial is already referenced, keep that package strategy and do not add Lite or GridLite. Only switch package families when the user explicitly asks, replacing conflicting references rather than keeping both.
dotnet add package IgniteUI.Blazor.Lite # OSS core UI components (MIT)
dotnet add package IgniteUI.Blazor.GridLite # OSS lightweight grid (MIT)
Use IgniteUI.Blazor.Lite for core controls such as IgbInput, IgbCombo and IgbDialog, and IgniteUI.Blazor.GridLite for the lightweight grid. Reference both packages only when the app needs both. Do not invent per-component packages such as IgniteUI.Blazor.Combo.
Charts, maps, gauges and other premium components are not included in Lite. Check the requested component's package before recommending a reference.
2. IgniteUI.Blazor.Lite Service Registration
Usually in Program.cs:
builder.Services.AddIgniteUIBlazor(); // no modules pre-loaded; each loads on first render
Pass typeof(Igb<Name>Module) values to eagerly pre-load a specific set instead:
builder.Services.AddIgniteUIBlazor(
typeof(IgbInputModule), typeof(IgbComboModule), typeof(IgbDialogModule));
Module names always follow Igb{ComponentName}Module. Passing modules eagerly loads them during startup, increasing the initial transfer to reduce first-render latency. Components not listed still register their own modules on first render.
For a GridLite-only setup, do not call AddIgniteUIBlazor() or add manual Ignite UI script tags. Reference IgniteUI.Blazor.GridLite, add the control namespace, and link the GridLite stylesheet shown below.
Split Blazor Web App: add each required package to both the Server and Client .csproj files. For core controls, use the actual project paths in place of these examples.
dotnet add Server/Server.csproj package IgniteUI.Blazor.Lite
dotnet add Client/Client.csproj package IgniteUI.Blazor.Lite
If GridLite is needed, add IgniteUI.Blazor.GridLite to both projects as well. For a GridLite-only app, add only that package and skip the service registrations below.
For Lite, call AddIgniteUIBlazor() in both the server and client Program.cs.
// Server
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents();
builder.Services.AddIgniteUIBlazor();
// Client (WebAssemblyHostBuilder)
builder.Services.AddIgniteUIBlazor();
For a single-project Interactive Server Blazor Web App, call AddIgniteUIBlazor() once in the server Program.cs. Do not add a client project or WebAssembly services.
3. _Imports.razor
@using IgniteUI.Blazor.Controls
Add it to both _Imports.razor files in split Blazor Web App solutions.
4. Host page — theme stylesheet
Host page is wwwroot/index.html (WASM/MAUI), Pages/_Host.cshtml (Server), or Components/App.razor (Web App).
IgniteUI.Blazor.Lite 0.1.1 loads its JavaScript automatically through a Blazor initializer. Keep the existing Blazor framework script and add the theme stylesheet below. Do not add a manual Ignite UI script tag.
<link href="_content/IgniteUI.Blazor/themes/light/bootstrap.css" rel="stylesheet" />
The stylesheet is required: without it components render unstyled.
Theme files under _content/IgniteUI.Blazor/themes/ are {light|dark}/{bootstrap|material|fluent|indigo}.css — link exactly one.
.NET 9+ Web App projects can use the fingerprinted asset collection:
<link rel="stylesheet" href="@Assets["_content/IgniteUI.Blazor/themes/light/bootstrap.css"]" />
IgniteUI.Blazor.GridLite ships its own stylesheet from its own asset root, but should be used only if you are using the GridLite component exclusively. If you are using other Ignite UI components, do not link (or suggest) the GridLite stylesheet — use the main theme stylesheet above instead.
<link href="_content/IgniteUI.Blazor.GridLite/themes/light/bootstrap.css" rel="stylesheet" />
5. Render mode (Blazor Web App only)
Ignite UI components need an interactive render mode; static SSR renders nothing usable.
@rendermode InteractiveServer
Or globally in `App
よくある質問
必要な.NETのバージョンは?
サポートされる最も低いターゲットは.NET 8です。
チャートも含まれますか?
チャートやそのほかのプレミアムコンポーネントは、Liteパッケージには含まれないため、別のパッケージが必要です。
既存のIgnite UIのパッケージを置き換えますか?
いいえ。プロジェクトが別のIgnite UIのパッケージ系統を使っている場合、切り替えを頼まない限り、そのまま残します。
詳細
作者による元の説明
Add, configure, or review Ignite UI for Blazor Lite component support in Blazor applications. USE FOR: installing IgniteUI.Blazor.Lite or IgniteUI.Blazor.GridLite, registering AddIgniteUIBlazor() in Blazor Server, WASM, Hybrid, or split Blazor Web App projects, adding @using IgniteUI.Blazor.Controls, wiring the theme stylesheet, picking the right host page, locating the GridLite stylesheet path, explaining single-project vs split Server/Client Web App setup differences, and checking where an interactive render mode is needed for Ignite UI components to work. DO NOT USE FOR: general Blazor comp
repo: dotnet/skills
人気
- GitHubのスター
- 5.8k
- ランキング
- #14569
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
create-custom-agent
5.8kVisual Studio Codeのカスタムエージェントのファイルを、独自のツール、指示、ほかのエージェントへの引き継ぎとともに作るようエージェントを支援します。
create-skill
5.8k有効な名前、明確な発動の説明、規格に従うSKILL.mdファイルを持つ、新しいエージェントのスキルを作るようエージェントを支援します。
csharp-scripts
5.8k.NETのコマンドラインツールを使って、完全なプロジェクトを作らずに、小さなC#のプログラムを一つのファイルとして実行するようエージェントを支援します。
dotnet-pinvoke
5.8k署名、文字列の扱い、メモリ、安全なハンドルを含めて、ネイティブのC言語またはC++のライブラリを.NETから正しく呼び出すようエージェントを支援します。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。