Measured entry

ruixen-gradient-chat-input

chatgradient-glowmotion on file

A client-side chat composer with animated message bubbles, an optional canned auto-reply, synthesized send and receive chimes, and a spectrum glow after conversation starts. It ships as a shadcn registry component and relies on Motion, Lucide icons, shadcn Button and Input primitives, the cn utility, Tailwind theme tokens, and browser audio APIs.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-gradient-chat-input at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-gradient-chat-input at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-gradient-chat-input at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for ruixen-gradient-chat-input
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal72.6 KB (138.0 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 47.60s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/gradient-chat-input.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A polished prototype-oriented composer with useful callbacks and configurable effects, but much of the conversation behavior is illustrative rather than application-ready. It needs a shadcn-style setup to build and mount, so adoption is easiest in an existing compatible codebase.

Use it if

  • You want a self-contained chat demo or onboarding prototype with lively send feedback.
  • Your app already uses shadcn conventions and can reuse its Button, Input, utility, and theme setup.
  • You need a controlled send callback while keeping the sample bubble history and optional reply behavior local to the component.

Skip it if

  • You need a production conversation view backed by persisted messages, streaming responses, delivery state, or retries.
  • Your design system does not use shadcn aliases and Tailwind theme tokens, and you do not want to adapt those assumptions.
  • You need the attachment control to open a picker without adding that behavior yourself.
  • You want a quiet or motion-light composer by default, since the component enables synthesized sounds and animated effects unless configured otherwise.

Install

Installation record for ruixen-gradient-chat-input
Declared dependencieslucide-react, motion, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Motion, Lucide React, and the required Radix-backed UI dependencies; provide compatible Button and Input primitives, a cn class-merging helper, the expected import aliases, Tailwind utilities and theme color tokens, and client-side React support. Wire the attachment action and real message transport separately.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the chat pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.