We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. One of the problems with the as is that it can't be chained:
as
<Toolbar> <ToolbarButton as={Button{as={Link}}}>Share</ToolbarButton> </Toolbar>
Describe the solution you'd like asChild allows to have chained components. It is implemented by Radix Slot and Ark UI.
<Toolbar> <ToolbarButton asChild> <Button asChild> <Link>Share</Link> </Button> </ToolbarButton> </Toolbar>
Describe alternatives you've considered I've considered creating a HoC around classed, but:
classed
Additional context I'm sure you're aware about asChild, but here some interesting points can be found: https://www.jacobparis.com/content/react-as-child https://sandroroth.com/blog/react-polymorphic-components/
asChild
The text was updated successfully, but these errors were encountered:
Thanks for the issue!
I've thought about this as well. Adding it on the roadmap for v2.
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
One of the problems with the
as
is that it can't be chained:Describe the solution you'd like
asChild allows to have chained components. It is implemented by Radix Slot and Ark UI.
Describe alternatives you've considered
I've considered creating a HoC around
classed
, but:as
(can be omitted though).Additional context
I'm sure you're aware about
asChild
, but here some interesting points can be found:https://www.jacobparis.com/content/react-as-child
https://sandroroth.com/blog/react-polymorphic-components/
The text was updated successfully, but these errors were encountered: