Skip to content

No.241 · 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

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Paper

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. Selected variant — Paper (paper): Apply the paper theme. Where the brief above gives no colour values for it, choose a restrained paper palette with text at 4.5:1 contrast or better. Keep the geometry, states and motion described above unchanged. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. 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 behavior: Container query drops to one column below 30rem. Touch: On touch the first tap commits the prompt directly (there's no hover preview). Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

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).