Prompt Suggestion Chips

Starter chips under the input, click one and it types itself in

Ask anything…

Create prompt suggestion chips for an AI input. Below an input field, show 3 suggestion chips (e.g. "Summarize this page", "Make it shorter", "Fix the tone") as small rounded-full pill buttons with a 1px hairline border. On mount they stagger in: each chip starts 8px lower at 90% scale and 0 opacity, then springs into place (stiffness 400, damping 26) with a 0.12s delay between chips, starting 0.25s after the input appears. Clicking a chip types its text into the input character by character at 28ms per character, with a blinking caret (opacity 1 → 0, 0.7s loop) in the accent color while typing. While the input has content, its border switches to the accent color (animate border-color over 250ms) and a small clear (×) button appears to reset. Chips lift 2px on hover. Accessibility: chips are real buttons, the clear button has aria-label "Clear input". If prefers-reduced-motion is set, chips appear without the stagger and clicking fills the input instantly instead of typing. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.

Rate it
0
0

We'd like to measure how the site gets used, with Google Analytics. It sets cookies. Everything the site needs to work runs either way. How we handle data