Repository navigation
feat(chat): optional attachIcon and sendIcon on ChatInput - #59
Closed
TheGreatAxios wants to merge 8 commits into
Closed
TheGreatAxios wants to merge 8 commits into
TheGreatAxios wants to merge 8 commits into
Conversation
A small set of mutually exclusive choices as joined segments — theme, protocol, density. role=group with aria-pressed toggles rather than a radiogroup because the choice takes effect immediately. Stateless: the host owns the value since it usually outlives the component.
Artifact-style strips outgrow their pane; wrapping pushes content down. The scrollable tablist fades whichever edge still hides tabs, driven by scroll position and a ResizeObserver on the pane itself. icon carries the thing's kind, marker a trailing state (live dot, dirty flag).
…ntalStepper A queue that is either empty or not makes the count noise; marker=dot keeps 'something is waiting' without it. The segments stepper is the whisper track — hairline segments, current stretched in accent — for dense chrome where the step name is carried by the surface beneath.
onSendHold fires on a >=450ms press instead of sending — the heavier alternative (send back, send-and-…) that shares the button because it is a send, not a separate action. The click ending a hold is swallowed so it never sends on release, and a leaked hold cannot eat a later send.
Named Root/Header/Body/Textarea/Footer/Tools/Submit/Button/Attach slots compose a Vercel-style prompt. The all-in-one ChatInput still works; leadingTools and trailingTools land extra footer controls.
Keep ChatInput onSendHold with attachIcon/sendIcon and leading/trailing tools.
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add optional
attachIconandsendIcon(ReactNode) props onChatInput. Omitted, they keep the current Paperclip and ArrowUp glyphs. The stop control is unchanged.Verification
bun test src/ui/chat-input.test.tsxbun run typecheckbun run lintbun run dep-guardbun run build