12 AI UI snippets · every one runs live in the editor
AI UI Components
AI UI components are the interface pieces an AI product needs, from chat bubbles to voice indicators. Every snippet here runs live in the editor, so you can change it and copy the result.
AI UI components by use
Chat and prompt interfaces
These AI UI snippets cover where people type to a model and read its replies.
AI Chatbot Interface Layout JSA complete chat window in flexbox that scrolls to the newest message and sends on Enter.CSSJS
AI Chat Bubble Messages CSSUser and AI message bubbles, with a typing indicator of three dots that bounce in turn.CSS
AI Prompt Input with Glow Effect JSA prompt box that grows with its text, framed by a blurred gradient glow that drifts.CSSJS
AI Token Streaming Text Reveal JSA reply that streams in word by word, with a cursor that follows the last word and blinks when the reply ends.CSSJS
Thinking and loading states
These AI UI snippets show that a model is still working.
Voice assistant animations
These AI UI snippets give visual feedback while an assistant listens or speaks.
AI Voice Assistant Breathing Ring CSSGlowing rings that breathe out of step, blended with mix-blend-mode: screen.CSS
Morphing Voice Assistant Orb CSSA gradient orb that changes shape by animating an eight-value border-radius.CSS
AI Voice Wave Visualizer JSBars that jump to a random height every 150 ms, the classic voice waveform.CSSJS
AI Voice Command Ripple Canvas JSA hold-to-talk mic button that sends ripples across a canvas and keeps the hold with pointer capture.CSSJS
Vision and image generation
These AI UI snippets suit tools that look at images or make them.
All snippets12
More tags
AI Object Recognition Scanning Box JS
AI Voice Assistant Breathing Ring CSS
AI Chat Bubble Messages CSS
AI Voice Command Ripple Canvas JS
Modern AI Image Generation Gallery JS
AI Token Streaming Text Reveal JS
Morphing Voice Assistant Orb CSS
AI Generative Skeleton Loader CSS
AI Thinking Text Animation CSS
AI Voice Wave Visualizer JS
AI Prompt Input with Glow Effect JS
AI Chatbot Interface Layout JS
Frequently Asked Questions
What are AI UI components?
AI UI components are the interface parts of an AI product, such as the chat window, the prompt box and the thinking, streaming and listening states. They cover what a user sees while a model reads, works and replies.
Do these AI UI snippets connect to an AI model?
No, these AI UI snippets are front-end components with simulated states. Replies, streaming and voice levels are simulated with timers and CSS animations, so you swap in your own model's responses.
How do you make an AI thinking animation in CSS?
Clip a wide linear gradient to the text with background-clip: text and animate its background-position. The AI Thinking Text Animation snippet does this in pure CSS.
How do you show AI text streaming word by word?
Split the reply into words and append one at a time with setInterval, keeping a cursor after the last word. The AI Token Streaming Text Reveal snippet shows the pattern.