Frontend Development
8 prompts
439 views
AI-Powered Prompt Bank for Frontend Developers
Simplifyaitools helps frontend developers build scalable, responsive, and high-performing UIs using AI-powered prompting. This detailed Prompt Bank provides structured, ChatGPT-optimized prompts for React, Vue, Angular, JavaScript, CSS, and UI/UX best practices. Whether you’re creating reusable components, designing layouts, or optimizing performance, these prompts enhance productivity and improve code quality.
#FrontendDevelopment#React#Vue#Angular#JavaScript#CSS#Tailwind#AIforCoding
1
Create a reusable React component for a dashboard card that:
- Accepts title, value, and trend as props
- Shows a trend indicator (up/down arrow)
- Uses Tailwind CSS for styling
- Includes proper TypeScript types
- Has error handling
- Is responsive
Please include comments explaining the code
Create a reusable React component for a sales analytics dashboard card that:
- Accepts
title,value, andtrendas props - Displays a green up arrow if the trend is positive and a red down arrow if negative
- Uses Tailwind CSS for styling
- Includes TypeScript types for props
- Implements error handling if props are missing
- Is fully responsive for mobile and desktop
Please add explanatory comments for maintainability.
2
Build a dynamic modal component in Vue.js that:
- Uses slots for flexible content
- Has a backdrop and close button
- Supports keyboard navigation (ESC to close)
- Is fully accessible (ARIA attributes)
- Uses Tailwind CSS for styling
Ensure proper Vue composition API usage and include comments.
Build a Vue.js modal component that:
- Supports
header,body, andfooterslots - Includes a dark backdrop and a close button
- Allows closing with both mouse click and the ESC key
- Uses ARIA attributes for accessibility
- Uses Tailwind CSS for a sleek design
Ensure the code follows Vue 3’s composition API and includes comments.