React Component Generator
中级development最低上下文:32K
Generates production-ready React components with TypeScript, proper props interfaces, accessibility attributes, responsive design, and test files. Follows modern patterns including Server Components, Suspense boundaries, and composition over inheritance.
使用场景
- Building UI components from design specs or screenshots
- Creating form components with validation
- Generating data table components with sorting and filtering
- Building accessible modal and dialog components
- Creating reusable layout components
示例提示词
Generate a React component with the following requirements: Component: [name and purpose] Props: - [list expected props] Requirements: - TypeScript with strict props interface - WCAG 2.1 AA accessible (keyboard nav, ARIA, focus management) - Responsive (mobile-first) - Use [Tailwind CSS / CSS Modules / styled-components] - Include loading and error states - Export as named export Also generate: - Unit test file (Vitest + Testing Library) - Storybook story with variants
推荐模型
兼容工具
claude-codecursorgithub-copilotkiroany
模态
输入: text, image
→输出: code
相关 Skills
作者
OpenModels Community