Troiana Prompt Library · ChatGPT · Design

Write a component specification

Define a reusable UI component clearly enough for design and engineering.

What this prompt helps you do

A component spec with variants, states, behaviour, and accessibility notes.

When to use it

A repeated pattern is ready to become part of a design system.

What to prepare

The goal, relevant source material, constraints, examples, and the decision or action this should support.

How to get a strong result

Add the facts, constraints, source material, and desired format that the model cannot know.

How to use this prompt

Replace each placeholder with accurate context. Paste the complete prompt into ChatGPT, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.

Browse all ChatGPT and Codex prompts