Skip to content

Conversation

@vineethasok
Copy link
Collaborator

Refactored GridContainer to support polymorphic 'component' prop and forward refs using React.forwardRef. This allows rendering as different HTML elements and improves flexibility for consumers.

Refactored GridContainer to support polymorphic 'component' prop and forward refs using React.forwardRef. This allows rendering as different HTML elements and improves flexibility for consumers.
@vineethasok vineethasok self-assigned this Aug 27, 2025
@vercel
Copy link

vercel bot commented Aug 27, 2025

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

Project Deployment Preview Comments Updated (UTC)
click-ui Ready Ready Preview Comment Aug 27, 2025 10:15am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the GridContainer component to be polymorphic and support ref forwarding. The component can now render as different HTML elements through a component prop and properly forwards refs to the underlying DOM element.

Key changes:

  • Added polymorphic support allowing the component to render as any HTML element
  • Implemented ref forwarding using React.forwardRef
  • Updated TypeScript types to support the new polymorphic behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@vineethasok vineethasok merged commit bcd9a6f into main Aug 28, 2025
6 checks passed
@vineethasok vineethasok deleted the add-forwardref-grid-container branch August 28, 2025 10:32
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.

3 participants