-
Notifications
You must be signed in to change notification settings - Fork 96
Open source documentation #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this 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 buildResult:
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.
No description provided.