Skip to content

asChild props, like in Radix UI #5321

Open
@zxti

Description

@zxti

Provide a general summary of the feature here

Radix UI supports the asChild prop, which lets you provide a complete other component to serve in a certain role.

This would let you much more easily adopt React Aria Components within codebases that already have other components (but also some gotchas that users just have to be aware of). Especially for things like Buttons, etc.

🤔 Expected Behavior?

See the Radix docs: https://www.radix-ui.com/primitives/docs/guides/composition

😯 Current Behavior

You are limited to just using React Aria Components with itself.

💁 Possible Solution

No response

🔦 Context

Has been brought up as feedback in the past:

#2331 (comment)

https://news.ycombinator.com/item?id=35853692

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions