·ux-component-states
*

ux-component-states

matthewharwood/fantasy-phonics

交互式组件状态模式包括悬停、焦点、活动、禁用、加载和错误状态。在构建按钮、输入、卡片或任何交互元素时使用。 (项目)

3安装·0热度·@matthewharwood

安装

$npx skills add https://github.com/matthewharwood/fantasy-phonics --skill ux-component-states

SKILL.md

Interactive state management for web components. This skill covers visual feedback for all interaction states, ensuring components feel responsive and accessible.

Custom elements are "undefined" until JavaScript loads and registers them. Use :not(:defined) to prevent Flash of Unstyled Content (FOUC):

Important: Element references are stored during construction - NEVER use querySelector.

交互式组件状态模式包括悬停、焦点、活动、禁用、加载和错误状态。在构建按钮、输入、卡片或任何交互元素时使用。 (项目) 来源:matthewharwood/fantasy-phonics。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/matthewharwood/fantasy-phonics --skill ux-component-states
分类
*创意媒体
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 ux-component-states?

交互式组件状态模式包括悬停、焦点、活动、禁用、加载和错误状态。在构建按钮、输入、卡片或任何交互元素时使用。 (项目) 来源:matthewharwood/fantasy-phonics。

如何安装 ux-component-states?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/matthewharwood/fantasy-phonics --skill ux-component-states 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/matthewharwood/fantasy-phonics