Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

syncfusion-blazor-buttons同步融合 Blazor 按钮

Agent Skill

syncfusion-blazor-buttons 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

372

周安装

16

GitHub Stars

公开资料未说明

下载量

131
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-blazor-buttons(同步融合 Blazor 按钮)
来源仓库:https://github.com/syncfusion/blazor-ui-components-skills
仓库路径:skills/syncfusion-blazor-buttons
安装命令:
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-buttons
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-buttons

简介

按钮组件集合,提供多种样式和状态的标准化交互元素。

  • 适合表单提交、操作确认或流程跳转等通用点击交互场景。
  • 直接在 Razor 标记中使用,支持图标、禁用态和加载动画配置。
  • 遵循无障碍设计原则,确保键盘导航和屏幕阅读器兼容。
  • 频繁触发操作时应添加防抖机制,避免重复提交问题。syncfusion-blazor-buttons 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Syncfusion Blazor Buttons Components

Table of Contents


Components Overview

The Syncfusion.Blazor.Buttons package provides 11 comprehensive button components:

Core Buttons

  1. Button (SfButton) - Standard button with multiple types, styles, icons, and states
  2. ButtonGroup (SfButtonGroup) - Grouped button controls with selection modes
  3. CheckBox (SfCheckBox) - Tri-state checkbox with checked, unchecked, and indeterminate states
  4. RadioButton (SfRadioButton) - Radio button for mutually exclusive selections
  5. ToggleSwitch (SfSwitch) - On/off toggle switch control

Interactive Buttons

  1. DropdownMenu (SfDropDownButton) - Button with dropdown menu options
  2. SplitButton (SfSplitButton) - Button with primary action and dropdown menu
  3. ProgressButton (SfProgressButton) - Button with built-in progress indication

Floating Actions

  1. FloatingActionButton (SfFab) - Circular floating action button
  2. SpeedDial (SfSpeedDial) - FAB with expandable action items (linear/radial)

Chip Components

  1. Chip (SfChip) - Compact elements for tags, filters, selections, and actions

Package: Syncfusion.Blazor.Buttons and Syncfusion.Blazor.SplitButtons


Common Setup and Installation

All button components share the same installation and setup process:

NuGet Packages

Install the required packages based on component type:

# For Button, Chip, FAB, ToggleSwitch
dotnet add package Syncfusion.Blazor.Buttons

# For DropdownMenu, SplitButton, ProgressButton, ButtonGroup, SpeedDial
dotnet add package Syncfusion.Blazor.SplitButtons

# Required theme package
dotnet add package Syncfusion.Blazor.Themes

Setup Steps (Common for All)

1. Add Namespaces (~/_Imports.razor):

@using Syncfusion.Blazor
@using Syncfusion.Blazor.Buttons
@using Syncfusion.Blazor.SplitButtons

2. Register Service (~/Program.cs):

using Syncfusion.Blazor;
builder.Services.AddSyncfusionBlazor();

3. Add Theme and Script (~/index.html or ~/App.razor):

<head>
    <link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
    <script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js"></script>
</head>

Documentation and Navigation Guide

Button Component

📄 Read: references/button-features.md

  • Getting started and installation
  • Basic button implementation
  • Button types (flat, outline, round, primary, toggle)
  • Button styles (primary, success, info, warning, danger, link)
  • Icons and icon positioning
  • Button sizes (small, normal)
  • Repeat buttons
  • Tooltips
  • HTML attribute support
  • Native event handling

📄 Read: references/button-styling.md

  • CSS class customization
  • Appearance customization
  • Block buttons
  • Rounded corners
  • RTL (right-to-left) support
  • Theme integration
  • Color schemes and variations
  • Responsive design patterns

📄 Read: references/button-advanced-features.md

  • Accessibility (WCAG compliance, keyboard navigation, ARIA attributes)
  • Screen reader support
  • Disabled state handling
  • Toggle button functionality
  • Server vs Web App implementation differences
  • Performance optimization
  • Best practices and common pitfalls

RadioButton Component

📄 Read: references/radio-button-features.md

  • Getting started and installation
  • Basic radio button implementation
  • Radio button grouping with Name property
  • Label configuration and positioning
  • State and value management
  • Two-way data binding (@bind-Checked)
  • Value property for identification
  • Pre-selecting default values
  • Form integration patterns

📄 Read: references/radio-button-styling.md

  • CssClass for custom styling
  • HtmlAttributes dictionary usage
  • EnableRtl for right-to-left layouts
  • Disabled state configuration
  • EnablePersistence for state storage
  • Custom CSS class patterns
  • Theme customization techniques
  • Responsive design approaches

📄 Read: references/radio-button-advanced-features.md

  • ValueChange event handler
  • ChangeArgs event data structure
  • CheckedChanged callback implementation
  • Created lifecycle event
  • Event handling patterns
  • ARIA attributes for accessibility
  • Keyboard navigation support
  • Best practices and common patterns

CheckBox Component

📄 Read: references/checkbox-features.md

  • Getting started and installation
  • Basic checkbox implementation
  • Checkbox states (checked, unchecked, disabled)
  • Label configuration
  • Change event handling
  • Two-way data binding (@bind-Checked)
  • Multiple checkboxes and checkbox groups
  • Indeterminate (tristate) state

📄 Read: references/checkbox-styling.md

  • CSS class customization
  • Appearance customization
  • Theme integration (Bootstrap5, Material, Fabric, Tailwind)
  • Color variations (primary, success, warning, danger)
  • Size customization
  • RTL (right-to-left) support
  • Disabled appearance
  • Label styling and spacing

📄 Read: references/checkbox-advanced-features.md

  • Disabled state handling and conditional disabling
  • Accessibility (WCAG, ARIA attributes, screen readers)
  • Keyboard navigation (Tab, Space)
  • Form integration and validation
  • State management patterns
  • Best practices and common patterns

Button Group Component

📄 Read: references/button-group-features.md

  • Getting started and installation
  • Basic button group implementation
  • Horizontal and vertical orientation
  • Selection modes (single, multiple, none)
  • Nesting button groups
  • Native event handling
  • Item configuration and data binding

📄 Read: references/button-group-styling.md

  • Appearance customization
  • Button types and styles within groups
  • Icons in button groups
  • Size variations
  • Custom CSS classes
  • Theme integration

📄 Read: references/button-group-advanced-features.md

  • Accessibility features
  • Keyboard navigation
  • Selection state management
  • Event handling patterns
  • Best practices for button groups

Chip Component

📄 Read: references/chip-features.md

  • Getting started and installation
  • Basic chip implementation
  • Chip types (input, filter, choice, action)
  • Icon integration
  • Delete functionality
  • Selection handling
  • Events (click, delete, created, beforeItemRender)
  • Dynamic chip collections
  • Rendering from data sources

📄 Read: references/chip-styling.md

  • Appearance customization
  • Color variations
  • Size options
  • Custom CSS classes
  • Icon and avatar styling
  • Theme integration
  • Responsive design

📄 Read: references/chip-advanced-features.md

  • Accessibility support
  • Keyboard navigation
  • Custom template support
  • State management patterns
  • Event handling
  • Best practices

Dropdown Menu Component

📄 Read: references/dropdown-menu-features.md

  • Getting started and installation
  • Basic dropdown menu implementation
  • Popup items configuration (text, ID, icon, separator)
  • Icons in menu items
  • Item click events
  • Opening and closing behavior
  • Position customization
  • Dynamically adding/removing items
  • Grouped popups with ListView integration
  • Dialog opening on item click
  • DropdownList vs DropdownButton comparison

📄 Read: references/dropdown-menu-styling.md

  • Appearance customization
  • Caret icon customization
  • Hiding dropdown arrow
  • Icon and width customization
  • Popup width customization
  • Rounded corners
  • RTL support
  • Animation effects
  • Template customization
  • Theme integration

📄 Read: references/dropdown-menu-advanced-features.md

  • Accessibility features
  • Disabled state handling
  • Native event handling
  • Keyboard navigation
  • Focus management
  • Best practices and patterns

Floating Action Button (FAB) Component

📄 Read: references/fab-features.md

  • Getting started and installation
  • Basic FAB implementation
  • Position options (TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight)
  • Icons configuration
  • Content customization
  • Target element binding
  • Click event handling
  • Show/hide behavior
  • Visibility control

📄 Read: references/fab-styling.md

  • Appearance styles (primary, success, info, warning, danger)
  • Size variations (small, medium, large)
  • Icon positioning
  • Color customization
  • CSS class customization
  • Disabled appearance
  • Theme integration

📄 Read: references/fab-advanced-features.md

  • Accessibility support
  • Keyboard navigation
  • Event handling patterns
  • State management
  • Best practices for FAB usage

Progress Button Component

📄 Read: references/progress-button-features.md

  • Getting started and installation
  • Basic progress button implementation
  • Spinner types and positions (left, right, top, bottom, center)
  • Progress states (Begin, Progress, End, Fail)
  • Duration configuration
  • Content customization during progress
  • Events (OnBegin, Progress, End, Fail)
  • Stopping progress programmatically
  • Hiding spinner
  • Progress tracking

📄 Read: references/progress-button-styling.md

  • Appearance customization
  • Button types and icons
  • CSS class customization for progress states
  • Progress indicator styling
  • Spinner customization
  • Content changes during progress
  • Theme integration

📄 Read: references/progress-button-advanced-features.md

  • Accessibility features
  • Trace events for debugging
  • Native event handling
  • State management patterns
  • Error handling
  • Best practices for progress buttons

Speed Dial Component

📄 Read: references/speeddial-features.md

  • Getting started and installation
  • Basic SpeedDial implementation
  • Display modes (Linear, Radial)
  • Action items configuration
  • Position options (9 positions)
  • Open and close behavior
  • Item click events
  • Open modes (Hover, Click)
  • Direction options (Up, Down, Left, Right, Auto)
  • Radial settings (offset, direction, startAngle, endAngle)
  • Icon configuration (open/close icons)

📄 Read: references/speeddial-styling.md

  • Appearance customization
  • Icons (open icon, close icon, item icons)
  • Color variations
  • Item templates
  • CSS class customization
  • Animation effects
  • Theme integration

📄 Read: references/speeddial-advanced-features.md

  • Accessibility support
  • Keyboard navigation
  • Event handling (all events)
  • State management patterns
  • Modal backdrop
  • Best practices

Split Button Component

📄 Read: references/split-button-features.md

  • Getting started and installation
  • Basic split button implementation
  • Dropdown menu items configuration
  • Primary button action
  • Item selection events
  • Icons in items
  • Separator support
  • Opening and closing behavior
  • Event handling

📄 Read: references/split-button-styling.md

  • Appearance customization
  • Button styles
  • Icons and icon positioning
  • Size variations
  • Custom CSS classes
  • RTL support
  • Theme integration

📄 Read: references/split-button-advanced-features.md

  • Accessibility features
  • Disabled state handling
  • Keyboard navigation
  • Native event handling
  • Best practices

Toggle Switch Component

📄 Read: references/toggle-switch-features.md

  • Getting started and installation
  • Basic toggle switch implementation
  • Checked and unchecked states
  • Two-way data binding (@bind-Checked)
  • On/Off label configuration
  • Change events
  • Value binding
  • Name attribute for forms
  • Default state configuration

📄 Read: references/toggle-switch-styling.md

  • Appearance customization
  • Size variations
  • Label customization (OnLabel, OffLabel)
  • Color schemes
  • Custom CSS classes
  • RTL support
  • Material theme considerations (no text support)
  • Theme integration

📄 Read: references/toggle-switch-advanced-features.md

  • Accessibility support
  • Keyboard navigation
  • Disabled state handling
  • Form integration
  • State management patterns
  • Best practices

Common Patterns Across Components

Event Handling Pattern

All button components support standard Blazor event handling:

<SfButton OnClick="HandleClick">Click Me</SfButton>

@code {
    private void HandleClick()
    {
        // Handle button click
    }
}

Styling Pattern

All components support CSS class customization:

<SfButton CssClass="e-primary custom-button">Styled Button</SfButton>

Icon Integration Pattern

Most components support icon CSS classes:

<SfButton IconCss="e-icons e-plus-icon">Add Item</SfButton>

Disabled State Pattern

All interactive components support disabled state:

<SfButton Disabled="@isDisabled">Button</SfButton>

RTL Support Pattern

All components support right-to-left rendering:

<SfButton EnableRtl="true">RTL Button</SfButton>

Shared Configuration

Theme Options

All button components support Syncfusion themes:

  • Bootstrap5 (default): bootstrap5.css
  • Material: material.css
  • Fabric: fabric.css
  • Tailwind: tailwind.css
  • Fluent: fluent.css

Common CSS Classes

Standard CSS utility classes work across components:

  • e-primary: Primary action styling
  • e-success: Success/positive action
  • e-info: Informational action
  • e-warning: Warning/caution action
  • e-danger: Danger/negative action
  • e-link: Hyperlink styling
  • e-small: Small size variant
  • e-flat: Flat style (no background)
  • e-outline: Outline style (border only)
  • e-round: Circular/rounded style

Accessibility Features

All components include:

  • ARIA attributes
  • Keyboard navigation support
  • Screen reader compatibility
  • Focus indicators
  • WCAG 2.1 compliance

Common Use Cases

Standard Actions

Use Button for primary, secondary, and tertiary actions in forms, dialogs, and pages.

Multi-Selection

Use CheckBox for multiple independent selections, list items, and preferences.

Exclusive Selection

Use RadioButton for single selection from multiple options, preferences, settings, and survey questions.

Grouped Actions

Use ButtonGroup for related actions like text alignment, view modes, or filter options.

Tags and Filters

Use Chip for tags, contact lists, filter selections, and removable items.

Menu Actions

Use DropdownMenu for contextual menus with multiple options.

Dual Actions

Use SplitButton when you need a primary action with additional options.

Long Operations

Use ProgressButton for operations that take time (file upload, form submission, API calls).

Primary Page Actions

Use FloatingActionButton for the primary action on mobile or dashboard pages.

Multiple Quick Actions

Use SpeedDial when you need multiple related actions accessible from a single FAB.

On/Off States

Use ToggleSwitch for binary settings, feature toggles, and preferences.


Quick Start Examples

Basic Button

<SfButton CssClass="e-primary">Primary Action</SfButton>

Basic CheckBox

<SfCheckBox TChecked="bool" Label="Accept Terms"></SfCheckBox>

CheckBox with Two-Way Binding

<SfCheckBox @bind-Checked="isEnabled" Label="Enable Feature"></SfCheckBox>

@code {
    private bool isEnabled = false;
}

Multiple Checkboxes

<SfCheckBox TChecked="bool"  Label="Option 1"></SfCheckBox>
<SfCheckBox TChecked="bool" Label="Option 2"></SfCheckBox>
<SfCheckBox TChecked="bool" Label="Option 3"></SfCheckBox>

Tristate CheckBox

<SfCheckBox EnableTriState="true" Checked="null" Label="Select All" TChecked="bool?"></SfCheckBox>

Basic RadioButton

<SfRadioButton Label="Option 1" Name="group" Value="option1" @bind-Checked="@selected"></SfRadioButton>
<SfRadioButton Label="Option 2" Name="group" Value="option2" @bind-Checked="@selected"></SfRadioButton>
<SfRadioButton Label="Option 3" Name="group" Value="option3" @bind-Checked="@selected"></SfRadioButton>

@code {
    private string selected = "option1";
}

RadioButton Group

<h4>Choose Your Plan</h4>
<SfRadioButton Label="Free" Name="plan" Value="free" @bind-Checked="@plan"></SfRadioButton>
<SfRadioButton Label="Pro" Name="plan" Value="pro" @bind-Checked="@plan"></SfRadioButton>
<SfRadioButton Label="Enterprise" Name="plan" Value="enterprise" @bind-Checked="@plan"></SfRadioButton>

@code {
    private string plan = "free";
}

Button with Icon

<SfButton IconCss="e-icons e-plus-icon" CssClass="e-primary">
    Add New
</SfButton>

Toggle Switch

<SfSwitch @bind-Checked="isEnabled" OnLabel="On" OffLabel="Off"></SfSwitch>

@code {
    private bool isEnabled = true;
}

Dropdown Menu

<SfDropDownButton Content="Actions">
    <DropDownMenuItems>
        <DropDownMenuItem Text="Edit"></DropDownMenuItem>
        <DropDownMenuItem Text="Delete"></DropDownMenuItem>
    </DropDownMenuItems>
</SfDropDownButton>

Floating Action Button

<div id="target" style="min-height:200px; position:relative;">
    <SfFab Target="#target" IconCss="e-icons e-plus" Content="Add"></SfFab>
</div>

Chip Collection

<SfChip EnableDelete="true">
    <ChipItems>
        <ChipItem Text="Tag 1"></ChipItem>
        <ChipItem Text="Tag 2"></ChipItem>
        <ChipItem Text="Tag 3"></ChipItem>
    </ChipItems>
</SfChip>

Navigation Tips

  • For installation and basic setup, refer to any component's features file
  • For styling and appearance, refer to the styling files for each component
  • For accessibility and advanced features, refer to the advanced-features files
  • For specific component features, navigate to that component's documentation sections above

Support and Resources


Remember: Always start with the appropriate component's features file for implementation guidance, then move to styling and advanced features as needed.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.71%
按下载量换算44

Claude

30.64%
按下载量换算40

Cursor

17.05%
按下载量换算22

Gemini CLI

9.83%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills