Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

syncfusion-aspnetcore-textbox同步融合 aspnetcore 文本框

Agent Skill

syncfusion-aspnetcore-textbox 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

233

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-textbox

简介

同步融合 ASP.NET Core 文本框组件,提供基础文本输入功能。

  • 适用于用户名登录、密码输入、备注说明等文本录入场景。
  • 通过 GitHub 安装并配置输入验证规则,支持正则表达式匹配。
  • 使用前需区分普通文本与密码字段,后者应启用掩码显示。
  • 长文本输入时应考虑自动保存草稿功能,防止意外丢失。syncfusion-aspnetcore-textbox 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing TextBox in ASP.NET Core

The TextBox is a fundamental input component that enables users to enter text data with advanced features like floating labels, validation states, adornments (icons/buttons), and accessibility support. This skill guides you through implementing TextBox in ASP.NET Core applications using Syncfusion's tag helper syntax.

When to Use This Skill

Use this skill when you need to:

  • Create text input fields with floating labels and placeholder support
  • Add validation visual states (success, error, warning)
  • Display icons or buttons within text inputs (prepend/append templates)
  • Build multiline textarea fields with auto-grow behavior
  • Implement password fields with visibility toggles
  • Create accessible forms following WCAG 2.2 Level AA standards
  • Integrate TextBox with ASP.NET Core models and data binding

Key Features

FeatureUse Case
Floating LabelsProfessional form UI that floats labels above input on focus
Validation StatesVisual feedback with error, warning, and success classes
AdornmentsAdd icons, buttons, or text before/after the input
Multiline ModeCreate textarea fields with optional auto-grow
Icon GroupsCombine icons with floating labels for better UX
WCAG ComplianceBuilt-in accessibility support for screen readers and keyboard navigation
Data BindingTwo-way binding with ASP.NET Core models
Event HandlingRespond to Created, Change, Input, Focus, and Blur events

Documentation Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Prerequisites and system requirements
  • Installing Syncfusion.EJ2.AspNet.Core NuGet package
  • Configuring TagHelper in _ViewImports.cshtml
  • Adding stylesheets and script resources via CDN
  • Registering the script manager
  • Creating your first TextBox
  • Running and testing the application

Tag Helper Syntax

📄 Read: references/tag-helper-syntax.md

  • TextBox tag helper structure and properties
  • Common properties (Placeholder, Value, Readonly, Disabled)
  • Data binding with ASP.NET Core models
  • Event binding in tag helpers
  • Tag helper vs programmatic approaches
  • Best practices and performance tips

Validation States

📄 Read: references/validation-states.md

  • Implementing error, warning, and success validation states
  • CSS class-based validation styling
  • Server-side validation integration
  • Client-side validation patterns
  • Real-world form validation examples
  • Accessibility for validation messages

Adornments and Icons

📄 Read: references/adornments-and-icons.md

  • Adding prepend and append templates
  • Icon integration (FontAwesome, Material Icons, Bootstrap Icons)
  • Password visibility toggle implementation
  • Clear button functionality
  • Unit indicators (currency, measurements)
  • Complex adornment patterns

Floating Labels

📄 Read: references/floating-labels.md

  • FloatLabelType property (Auto, Always, Never)
  • Styling and animating floating labels
  • Accessibility with floating labels
  • Dynamic label positioning patterns
  • Edge cases and troubleshooting

Multiline TextBox

📄 Read: references/multiline-textarea.md

  • Converting TextBox to textarea
  • Multiline property configuration
  • Character counting implementation
  • Auto-grow and resize behavior
  • Placeholder in multiline mode
  • Validation in multiline TextBox
  • Accessibility for textarea fields

Advanced Patterns

📄 Read: references/advanced-patterns.md

  • Data binding with HTML helpers
  • Programmatic TextBox creation with C# and JavaScript
  • Event handling patterns (Created, Change, Input, Focus, Blur)
  • Template-based rendering
  • Integration with ASP.NET Core Forms and Validation
  • Model binding examples
  • Security: XSS prevention and input sanitization

Quick Start Example

Basic TextBox with Floating Label (Tag Helper)

@* Pages/Index.cshtml *@
<div class="form-group">
    <ejs-textbox id="email"
                  placeholder="Enter email"
                  floatLabelType="Auto"
                  type="email">
    </ejs-textbox>
</div>

In _ViewImports.cshtml (one-time setup)

@addTagHelper *, Syncfusion.EJ2

In _Layout.cshtml (one-time setup)

<head>
    <link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/fluent.css" />
</head>
<body>
    @RenderBody()

    <script src="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/dist/ej2.min.js"></script>
    <ejs-scripts></ejs-scripts>
</body>

Result

User sees:

  1. Input field with placeholder "Enter email"
  2. When focused or filled, label "email" floats above the input
  3. Email validation applied automatically

Common Patterns

Pattern 1: Contact Form with Validation States

<form asp-action="Submit">
    <div class="form-group">
        <ejs-textbox id="name"
                      placeholder="Full Name"
                      floatLabelType="Auto"
                      cssClass="e-success">
        </ejs-textbox>
        <small class="d-block mt-2">Name is valid</small>
    </div>

    <div class="form-group">
        <ejs-textbox id="email"
                      placeholder="Email Address"
                      floatLabelType="Auto"
                      cssClass="e-error">
        </ejs-textbox>
        <small class="text-danger d-block mt-2">Invalid email format</small>
    </div>

    <button type="submit" class="btn btn-primary">Submit</button>
</form>

Pattern 2: Password Field with Visibility Toggle

<div class="form-group">
    <ejs-textbox id="password"
                  type="password"
                  placeholder="Password"
                  floatLabelType="Auto"
                  appendTemplate="<span class='e-input-group-icon' onclick='togglePassword()'>👁️</span>">
    </ejs-textbox>
</div>

<script>
    function togglePassword() {
        const input = document.getElementById('password');
        const type = input.type === 'password' ? 'text' : 'password';
        input.type = type;
    }
</script>

Pattern 3: Search Input with Icon

<div class="form-group">
    <ejs-textbox id="search"
                  placeholder="Search products..."
                  prependTemplate="<span class='e-input-group-icon'>🔍</span>"
                  floatLabelType="Auto">
    </ejs-textbox>
</div>

Key Properties Reference

PropertyTypeDefaultPurpose
idstring-Unique identifier for the TextBox
valuestring-Initial text value
placeholderstring-Placeholder text displayed when empty
floatLabelTypeFloatLabelTypeNeverLabel animation (Auto, Always, Never)
multilineboolfalseEnable multiline textarea mode
readonlyboolfalsePrevent user input while allowing focus
disabledboolfalseDisable input completely
cssClassstring-CSS classes (e.g., "e-error", "e-warning", "e-success")
prependTemplatestring-HTML template prepended to input
appendTemplatestring-HTML template appended to input
typestring"text"Input type (text, email, password, number, etc.)

Common Use Cases

Use Case 1: Contact Form Builder

Create a professional contact form with floating labels, validation, and email/phone patterns:

  • When: Building user contact information collection
  • Reference: validation-states.md
  • Key Features: Floating labels, validation states, pattern validation

Use Case 2: Search Interface

Implement a search box with prepended icon and dynamic filtering:

  • When: Building product/content search features
  • Reference: adornments-and-icons.md
  • Key Features: Icon adornments, event handling

Use Case 3: Feedback/Comments Section

Build textarea for user comments with character counting and auto-grow:

  • When: Creating feedback forms, comment sections
  • Reference: multiline-textarea.md
  • Key Features: Multiline mode, character limit, auto-grow

Use Case 4: Accessible Registration Form

Create a registration form following WCAG 2.2 Level AA standards:

  • When: Building public-facing registration forms
  • Reference: advanced-patterns.md
  • Key Features: ARIA labels, keyboard navigation, screen reader support

Next Steps:

  1. Review getting-started.md to set up your first TextBox
  2. Choose your use case and follow the corresponding reference guide
  3. Copy code examples and adapt to your project
  4. Refer to advanced-patterns.md for complex scenarios

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.63%
按下载量换算29

Claude

29.15%
按下载量换算24

Cursor

18.99%
按下载量换算16

Gemini CLI

9.3%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills