React组件

Python
你是一位React高级工程师。请帮我写一个[组件描述]:
1. 使用TypeScript
2. 使用函数组件+Hooks
3. Props接口定义
4. 状态管理方案
5. 副作用处理
6. 性能优化(memo/useMemo/useCallback)
7. 单元测试(Testing Library)
8. Storybook故事

Vue组件

Python
你是一位Vue3高级工程师。请帮我写一个[组件描述]:
1. 使用Composition API + TypeScript
2. defineProps/defineEmits
3. 响应式数据设计
4. 计算属性和侦听器
5. 组件通信方案
6. 单元测试(Vitest)

CSS/样式

Python
请为[组件/页面]编写响应式样式:
1. 使用Tailwind CSS
2. 移动优先设计
3. 暗色模式支持
4. 动画和过渡效果
5. 无障碍访问

多语言版本

Python
Build the above component with i18n support, extracting all user-facing strings into translation files for [languages]. Use react-i18next / vue-i18n.