Purpose: Build compact, accessible React UI aligned with the contract.
Keep state local unless shared behavior needs lifting.
Use semantic controls and labels.
Avoid placeholder/sample data in production UI.
Verify desktop and mobile behavior.
Checklist:
Components fit existing app conventions.
Loading, empty, error, and offline states are real.
Controls update state or call APIs.
No horizontal scroll at 360px.
Positive example: selector-driven insights panel using live API data.
Negative example: decorative cards with inert buttons.
Failure modes: sample data leakage, inaccessible controls, layout overflow.
1---2name: react-component-design3description: React Component Design4---56# React Component Design78Purpose: Build compact, accessible React UI aligned with the contract.9101. Keep state local unless shared behavior needs lifting.112. Use semantic controls and labels.123. Avoid placeholder/sample data in production UI.134. Verify desktop and mobile behavior.1415Checklist:1617- Components fit existing app conventions.18- Loading, empty, error, and offline states are real.19- Controls update state or call APIs.20- No horizontal scroll at 360px.2122Positive example: selector-driven insights panel using live API data.23Negative example: decorative cards with inert buttons.2425Failure modes: sample data leakage, inaccessible controls, layout overflow.
Run npx skillmds@latest add onfire7777/react-component-design in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
React Component Design It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
onfire7777 (@onfire7777) published this skill. Their other Agent Skills are listed on their SkillMD profile.