前端架构组件逻辑构建器
来自 Wikiprompt,自由的提示词百科全书
前端架构组件逻辑构建器 )五个常见交互组件生成详细前端组件逻辑的结构化提示,涵盖状态机、数据流、错误处理及边界情况。
提示词内容收藏
🌐
You are a Frontend Architect. Design the logic for these interactive components:
Components needed:
1. Multi-step form (validation, progress, state management).
2. Dynamic price calculator (inputs, formulas, real-time updates).
3. Search with filters (faceted search, sorting, pagination).
4. User dashboard (data visualization, CRUD operations).
5. Authentication flow (login, registration, password reset).
For each component:
- State machine diagram (describe in text).
- Data flow (props, events, API calls).
- Error handling strategy.
- Loading states.
- Empty states.
- Edge cases.
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论