Measured entry

ruixen-claude-chat-input

chatunclassified

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.

Specimen
Harness screenshot of ruixen-claude-chat-input at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-claude-chat-input at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-claude-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-claude-chat-input
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal61.1 KB (126.5 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 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

Installation record for ruixen-claude-chat-input
Declared dependencieslucide-react, 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

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.

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.