react-component
Installation
SKILL.md
React Component
Use the ui-component skill as the base — it holds the framework-agnostic HTML, CSS, and UX/a11y rules. This skill only adds React-specific rules on top.
Component types
-
Simple UI components (UI kit). Must not contain business logic, analytics collection, or hardcoded text (labels etc. are passed in from outside). Compound components expose their parts as subcomponents, not props:
// not <Select options={[...]} /> // but <Select> <Option value="1">Option 1</Option> <Option value="2">Option 2</Option> </Select>