Skip to content
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

feat(AsElement): support react component element types #1281

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

kevmo314
Copy link
Contributor

Adds support for React components to be passed in the as argument. This allows the use of Link from react-router-dom as the element type for a Button, for example.

Copy link

📘 Storybook Preview Available 👀

View the Storybook build from this PR in your browser:
https://60620d422ffdf100216415b2-crrxuuetls.chromatic.com/

(This action will publish a new comment and url if this PR is modified)

@kevmo314 kevmo314 merged commit 5794a64 into main Jun 28, 2024
7 checks passed
@kevmo314 kevmo314 deleted the support-rendering-element branch June 28, 2024 13:42
@narmirobot
Copy link

🎉 This PR is included in version 3.42.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants