Measured entry
ruixen-claude-chat-input
A client-side Claude-inspired chat composer shipped as a shadcn registry component. It includes an expanding message field, local file and pasted-text previews, model selection, a thinking toggle, and suggestion chips. It depends on React, Tailwind utility styles, lucide-react, Radix-backed shadcn primitives, and the shadcn cn helper; actual uploads and model behavior remain application work.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 1 |
| Axe serious | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 61.1 KB (126.5 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 32.84s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/claude-chat-input.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A capable interaction prototype for teams already invested in shadcn, but not production-ready as shipped. It needs a shadcn-style setup, accessible names and stronger contrast, plus real upload and model wiring. Adopt it as a starting point, not a finished chat boundary.
Use it if
- You already use shadcn and want a full composer shell with attachments, model choice, and suggestion prompts.
- Your application can connect the submit callback and replace the simulated upload state with real storage logic.
- You are prepared to adjust the Claude-specific labels, icon, and default model choices for your product.
Skip it if
- You need an accessible component without remediation, since icon-only controls lack names and several muted colors fail contrast checks.
- You want a small, dependency-light message field rather than a feature-rich composer tied to shadcn primitives.
- You expect file uploading, validation, progress, or backend model switching to work out of the box.
- Your product should not visually or verbally imitate Claude.
Install
| Declared dependencies | lucide-react, radix-ui |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
A non-shadcn project must add Tailwind styling, the cn utility and path alias, lucide-react, Radix UI support, and compatible Button, Textarea, Popover, Separator, Switch, and Badge primitives. It must also run as a client component and supply application-side submit and upload behavior.
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.
Author repository
github.com/ruixenui/ruixen.comAlternatives
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.
- hextaui-alertminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 26.8KB
- Bare
- fail
- Prov
- NO
- kibo-bannerminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 33.0KB
- Bare
- fail
- Prov
- NO
- ruixen-comment-threadunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 40.2KB
- Bare
- fail
- Prov
- NO
- ruixen-smart-paste-inputunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 44.4KB
- Bare
- fail
- Prov
- NO
- ruixen-faq-chat-accordionunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 67.7KB
- Bare
- fail
- Prov
- NO
- ruixen-gradient-chat-inputgradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 72.6KB
- Bare
- fail
- Prov
- NO