Skip to content

Conversation

@haydenbleasel
Copy link
Collaborator

No description provided.

@haydenbleasel haydenbleasel linked an issue Oct 22, 2025 that may be closed by this pull request
@vercel
Copy link
Contributor

vercel bot commented Oct 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ai-elements-docs Ready Ready Preview Comment Oct 27, 2025 8:36pm
ai-elements-registry Ready Ready Preview Comment Oct 27, 2025 8:36pm
ai-elements-test Error Error Oct 27, 2025 8:36pm

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The PromptInputButton component was using an invalid size="icon" prop value, but the component only accepts "sm", "icon-sm", "xs", "icon-xs", null, or undefined.

View Details
📝 Patch Details
diff --git a/packages/examples/src/demo-grok.tsx b/packages/examples/src/demo-grok.tsx
index 04beebe..e20b05a 100644
--- a/packages/examples/src/demo-grok.tsx
+++ b/packages/examples/src/demo-grok.tsx
@@ -701,7 +701,7 @@ const Example = () => {
                 <div className="h-full w-px bg-border" />
                 <PromptInputButton
                   className="rounded-r-full"
-                  size="icon"
+                  size="icon-sm"
                   variant="ghost"
                 >
                   <ChevronDownIcon size={16} />

Analysis

TypeScript compilation failure due to invalid size prop

What fails: TypeScript compiler fails on packages/examples/src/demo-grok.tsx:704:19 due to invalid size="icon" prop on PromptInputButton component

How to reproduce:

pnpm run build

Result:

Type error: Type '"icon"' is not assignable to type '"sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined'.

The PromptInputButton component only accepts specific size values: "sm", "icon-sm", "xs", "icon-xs", null, or undefined, but the code was using "icon" which is not valid.

@vercel vercel bot temporarily deployed to Preview – ai-elements-test October 27, 2025 20:32 Inactive
@vercel vercel bot temporarily deployed to Preview – ai-elements-test October 27, 2025 20:35 Inactive
@haydenbleasel haydenbleasel merged commit f2cb8c7 into main Oct 27, 2025
7 of 10 checks passed
@haydenbleasel haydenbleasel deleted the 61-open-source-documentation branch October 27, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open source documentation

2 participants