GitLab Well Architected
Cookbook navigation
Prompts / Design User Interface Components

Design User Interface Components

Design & UXArchitectureDeveloperGenerationCreateBeginner

Build UI components matching design specs with proper accessibility and responsiveness.

For GitLab Duo

prompt

Create a [COMPONENT TYPE] component:

Requirements:
[DESCRIBE FUNCTIONALITY]

Design specs:
[DESCRIBE VISUAL REQUIREMENTS]

Include:
1. Component code
2. Props interface
3. Styling
4. Accessibility features
5. Usage examples

Use the prompt

Include the component's states, interaction requirements, and existing design conventions. An empty state or error state often reveals requirements that a single visual mockup misses.