No.155 · AI & Chat
Prompt Starters
Suggested prompts that preview themselves: hover or focus a card and its full prompt writes itself into the composer as ghost text; click and it becomes real.
The prompt
The design brief behind this component — reuse it to regenerate, remix, or explain it.
Design the empty state of an AI chat as a composer plus four starter cards. Each card is only an icon, a short title and a hint — the full prompt is never printed on the card. Instead, hovering or focusing a card types its full prompt into the composer as ghost text (38% ink, three characters every 16ms, with a blinking accent caret, clamped to three lines) while the composer's ring tints to the accent and the card lifts 2px. The bar under the composer says 'Preview · click to use'. Leaving the card clears the ghost. Clicking commits: the text becomes real in the textarea with a brief accent wash, focus moves to the end of it, the send button enables and a character count appears; a 'Clear and browse starters' link brings the previews back. Cards enter with a 60ms stagger. Two columns, one below 30rem. Paper and night themes.
Notes
- Interaction
- Hover or focus a starter to preview its prompt in the composer; click to use it; edit before sending.
- Motion
- Ghost text types at ~190 chars/s with a blinking caret; card lift 380ms; commit flash 900ms; entrance stagger 60ms.
- Accessibility
- Cards are buttons; the ghost text is aria-hidden (it's a preview) and the textarea is labelled; committing moves focus into the textarea. Reduced motion shows the preview instantly.
- Responsive
- Container query drops to one column below 30rem.
- On touch
- On touch the first tap commits the prompt directly (there's no hover preview).