fix: ThreadPrimitive.FollowupSuggestions → Suggestions, autoSend → send

Made-with: Cursor
This commit is contained in:
2026-03-01 20:02:57 -08:00
parent 9bec2e9b17
commit 86504c4c55

View File

@@ -36,7 +36,7 @@ export const Thread: FC = () => (
components={{ UserMessage, AssistantMessage }}
/>
<ThreadPrimitive.FollowupSuggestions
<ThreadPrimitive.Suggestions
components={{ Suggestion: FollowupSuggestion }}
/>
</ThreadPrimitive.Viewport>
@@ -81,7 +81,7 @@ const ThreadWelcome: FC = () => (
// ---------------------------------------------------------------------------
const FollowupSuggestion: FC<{ suggestion: { prompt: string } }> = ({ suggestion }) => (
<ThreadPrimitive.Suggestion prompt={suggestion.prompt} asChild autoSend>
<ThreadPrimitive.Suggestion prompt={suggestion.prompt} send asChild>
<button className="text-xs px-3 py-1.5 rounded-full border border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300 hover:bg-violet-50 dark:hover:bg-violet-950/40 transition-colors">
{suggestion.prompt}
</button>