cpn-basic-spin

Official

正确使用 UDesign Spin 的快速指南

AuthorUCloud-FE
Version1.0.0
Installs0

System Documentation

What problem does it solve?

AI 在使用 UDesign Spin 组件时容易出现错误的实现或缺失样式的问题。本 Skill 提供规范化的使用方法,确保 Spin 外层容器正确应用自转样式以及对父组件的原生属性透传。

Core Features & Use Cases

  • 正确使用: 将 Spin 作为外层 div 包裹,确保自转样式生效,且可透传 style、className 等原生属性。
  • 使用场景: 适用于加载状态的文本或内容块的 UI 场景,提升交互的视觉反馈。
  • 可复用性: 提供一致的 Spin 容器行为,便于跨页面复用。

Quick Start

将 Spin 作为外层容器包裹需要自转的内容,并确保传入的原生属性(如 style、className)在外层 div 上生效。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cpn-basic-spin
Download link: https://github.com/UCloud-FE/udesign-cli/archive/main.zip#cpn-basic-spin

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.