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

Slot utility #1315

Open
colmtuite opened this issue Jan 9, 2025 · 1 comment
Open

Slot utility #1315

colmtuite opened this issue Jan 9, 2025 · 1 comment
Labels
new feature New feature or request

Comments

@colmtuite
Copy link
Contributor

Feature request

Summary

There is interest from users in having a helper to create their own polymorphic components using render.

Examples in other libraries

https://www.radix-ui.com/primitives/docs/utilities/slot
https://github.com/radix-ui/primitives/tree/main/packages/react/slot/src

Motivation

It's quite a common need when creating a styled component library.

@colmtuite colmtuite added the new feature New feature or request label Jan 9, 2025
@colmtuite colmtuite added this to Base UI Jan 9, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Base UI Jan 9, 2025
@seloner
Copy link

seloner commented Jan 9, 2025

Can I work on this? I prob will follow a similar implementation with radix.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants