feat(ChatPrompt): add body slot#272
Merged
Merged
Conversation
Port the ChatPrompt body slot: it replaces the internal textarea (e.g. to render an Editor with mentions) and exposes submit/close/placeholder/ disabled/b24ui. submit and close become event-optional so a custom body can call them without a DOM event. The upstream color prop + focus-highlight theme is deferred: b24ui's chat-prompt theme is a static air-token variant set with no color variant or options.theme.colors palette to hang the highlight on. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
IgorShevchik
added a commit
that referenced
this pull request
Jul 11, 2026
#273) Record the merged PR (#272) and b24ui merge sha for the final commit of the sync round, so no ledger entry is left as pending-merge. Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb Co-authored-by: Shevchik Igor <noreply@anthropic.com>
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.
Syncs upstream nuxt/ui commit
123184b— feat(ChatPrompt): add body slot and focus highlight (#6709).What (ported)
The
bodyslot replaces the internal textarea — e.g. to render an Editor with mentions — and exposessubmit/close/placeholder/disabled/b24ui.submitandclosebecome event-optional (e ?? new Event(...)) so a custom body can call them without a DOM event.b24ui's
ChatPrompt.vuematched the pre-fix textarea structure, so the slot ported cleanly, adapted to b24ui (B24Textarea, theb24uiprop instead ofui; the template wrapsB24Textareaas the slot's default content). Ported the 3 upstream body-slot tests + thewith body slotrender case.Deferred —
colorprop + focus highlightb24ui's
chat-prompt.tstheme is a static object using the fork's own airvariantset (outline/tinted/filled/plain,--ui-color-design-*tokens) — it has nocolorvariant and does not use upstream'soptions.theme.colorspalette. Upstream'scolorprop, the theme's function conversion, and thefocusHighlightcompound variants (ring-${color}/outline-${color}/inverted) are all tied to that absent color system, so they're deferred to a dedicated b24ui ChatPrompt design pass. (Same split as the ChatToolactionsport vs its v7-entangled flow.)Verify (
CI=true)dev:prepare·lint·typecheck·test·build— all green. Thewith body slotrender case wrote 2 new snapshots and updated 0 existing ones — a slot with default content renders the same DOM when unused, so there's no churn. Suite 5485 passed / 6 skipped (+8 body-slot tests across the two projects).Ledger: cursor advanced to
123184b; previous entry76d613creconciled to PR #271.🤖 Generated with Claude Code
Generated by Claude Code