360 Secure SkillHub
360 安全技能中心

building-components

该 Skill 是一份 UI 组件开发指南,覆盖组件分类、设计原则、可访问性、组合与多态模式、类型设计、受控与非受控状态、数据属性、设计令牌、样式方案,以及通过 npm、注册表或市场分发组件和编写文档。

vercel
热度 0.00
最近更新 2026-10-19 03:04:24
分类:开发依赖:纯提示词应用场景:代码生成 / UI 原型 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add vercel/components.build/building-components
Metadata
name
building-components
description
Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation.

Building Components

When to use this skill

Use when the user is:

  • Building new UI components (primitives, components, blocks, templates)
  • Implementing accessibility features (ARIA, keyboard navigation, focus management)
  • Creating composable component APIs (slots, render props, controlled/uncontrolled state)
  • Setting up design tokens and theming systems
  • Publishing components to npm or a registry
  • Writing component documentation
  • Implementing polymorphism or as-child patterns
  • Working with data attributes for styling/state

References