360 Secure SkillHub
360 安全技能中心

building-components

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

分类:开发
vercel
热度 47.40
最近更新 2026-10-19 03:04:24

安装

发给 Agent
帮我安装这个技能: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