Skip to content

Fix #398: Support additional icon libraries (similar to shadcn/ui)?#424

Open
JiwaniZakir wants to merge 1 commit intovercel:mainfrom
JiwaniZakir:fix/398-support-additional-icon-libraries-simila
Open

Fix #398: Support additional icon libraries (similar to shadcn/ui)?#424
JiwaniZakir wants to merge 1 commit intovercel:mainfrom
JiwaniZakir:fix/398-support-additional-icon-libraries-simila

Conversation

@JiwaniZakir
Copy link
Copy Markdown

Closes #398

Replaces the LucideIcon/LucideProps type constraints with generic React component types so callers can pass icons from any library — Tabler, Phosphor, Hugeicons, Remix, etc. — not just Lucide. The change is purely a type-level loosening; no runtime behavior changes.

  • artifact.tsxArtifactActionProps.icon changed from LucideIcon to ComponentType<{ className?: string }>
  • chain-of-thought.tsxChainOfThoughtStepProps.icon changed from LucideIcon to ComponentType<{ className?: string }>
  • checkpoint.tsxCheckpointIconProps changed from LucideProps to SVGProps<SVGSVGElement>

Verified by passing a Tabler icon (IconBrain from @tabler/icons-react) and a Phosphor icon (Brain from phosphor-react) into ChainOfThoughtStep and ArtifactAction respectively — both rendered correctly with no TypeScript errors.


This PR was created with AI assistance (Claude). The changes were reviewed by quality gates and a critic model before submission.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 15, 2026

@JiwaniZakir is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

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.

Support additional icon libraries (similar to shadcn/ui)?

1 participant