create-component
HTML/CSS 和 RNBT 都可以使用。 Figma Conversion에서 생성된 정적 파일을 RNBT_architecture 패턴에 맞게 동적 컴포넌트로 변환합니다。将静态 HTML 转换为动态组件、创建 RNBT 组件或实现具有数据绑定和事件处理的组件时使用。
📖 中文导读:HTML/CSS 和 RNBT 都可以使用。 Figma Conversion에서 생성된 정적 파일을 RNBT_architecture 패턴에 맞게 동적 컴포넌트로 변환합니다。将静态 HTML 转换为动态组件、创建 RNBT 组件或实现具有数据绑定和事件处理的组件时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: create-component description: Add a new component to the design system
Create Component
When creating Equality components,
Common Patterns
States
We commonly use the following states for components:
- Neutral (Default)
- Primary (A hierarchical increase, uses the primary brand color)
- Success (Something has worked correctly)
- Warning (The user should be informed that something may not be working as intended or requires attention)
- Danger (Destructive actions or serious errors)
Prefix and Suffix Slots
Components like "Button" and "Input" have prefix and suffix slots to place icons or buttons before, or after the primary component content.
Documentation
After creating the component in the "ui" package, always create a corresponding docs MDX under packages/demo/src/content/components.
Review the create-documentation skill for instructions on how to format the docs.