You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/blade/src/components/ChatInput/_decisions/decisions.md
+79Lines changed: 79 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,6 +230,12 @@ type ChatInputProps = {
230
230
*/
231
231
accessibilityLabel?:string;
232
232
233
+
/**
234
+
* Attaches a feedback prompt to the top of the composer, on a shared surface. Web only.
235
+
* Omit it and the composer is unchanged. See "Attached Feedback Prompt" below.
236
+
*/
237
+
feedback?:ChatInputFeedbackProps;
238
+
233
239
/**
234
240
* Test ID for automation testing
235
241
*/
@@ -449,6 +455,79 @@ The uploading guard prevents `onSubmit` from receiving a not-yet-ready file in `
449
455
450
456
When submit is disabled because of an error or uploading file, no additional tooltip or `errorText` is surfaced on the submit button itself. The visual feedback is already present on the `FileUploadItem` chip (red error state, spinner for uploading). Adding a redundant tooltip or `errorText` slot message would duplicate that signal without adding clarity. If a consumer needs custom messaging they can use the `validationState` / `errorText` props.
451
457
458
+
## Attached Feedback Prompt
459
+
460
+
Passing a `feedback` object attaches a `ChatFeedback` flow to the composer's top edge, the two
461
+
sharing one tinted surface so they read as a single object. There is no `showFeedback` boolean —
462
+
passing the object is the switch, the same way `Tooltip` has no `showTitle`. Omit it and the
463
+
composer renders byte-for-byte as it does without the feature: the surface properties are only
464
+
emitted when the prop is present, rather than set to transparent and zero.
0 commit comments