Back to guide/General Productivity

UI Component Generation

Gives Bolt explicit design tokens, interaction specs, and accessibility requirements so the component is production-ready without multiple revision rounds.

bolt-ai-promptscomponent_namedesign_styleinteraction_1
Edit View
Prompt
Create a {{component_name}} component with the following specs:\n\nVisual design:\n- {{design_style}} aesthetic\n- Rounded corners (8px border radius)\n- Subtle shadow on hover\n- Smooth transitions (200ms ease)\n\nFunctionality:\n- {{interaction_1}}\n- {{interaction_2}}\n- Keyboard accessible (Tab, Enter, Escape)\n- Loading and empty states\n\nProps: {{prop_list}}\n\nUse TypeScript. Export as default. Include JSDoc comments for each prop.

Variables to customize

{{component_name}}{{design_style}}{{interaction_1}}{{interaction_2}}{{prop_list}}

Why this prompt works

Gives Bolt explicit design tokens, interaction specs, and accessibility requirements so the component is production-ready without multiple revision rounds.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.