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

Portal component #383

Closed
StevenStavrakis opened this issue Mar 6, 2024 · 5 comments · May be fixed by #469
Closed

Portal component #383

StevenStavrakis opened this issue Mar 6, 2024 · 5 comments · May be fixed by #469
Labels
feature request New feature request Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.

Comments

@StevenStavrakis
Copy link

Describe the feature in detail (code, mocks, or screenshots encouraged)

It would be nice if there was an easy way to create portals for various UI elements. The Dialog component already uses it, but it doesn't appear to be exposed via the bits-ui library.

What type of pull request would this be?

New Feature

Provide relevant links or additional information.

No response

@wesharper
Copy link

Portal can commonly be passed as a prop. Either pass an element's css selector or null if you want it to take its stacking context from its parent. Default is body

@StevenStavrakis
Copy link
Author

What?

@ispyinternet
Copy link

I support this idea, however, you can simply use this package: https://github.com/romkor/svelte-portal

@huntabyte
Copy link
Owner

I understand what's being requested. This is something we'll look at adding to the rewrite for Svelte 5.

@huntabyte huntabyte added the Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5. label Apr 24, 2024
@huntabyte huntabyte mentioned this issue Jun 9, 2024
4 tasks
@huntabyte huntabyte added the feature request New feature request label Jun 27, 2024
@huntabyte huntabyte mentioned this issue Jul 31, 2024
70 tasks
@huntabyte
Copy link
Owner

Closing as fixed in bits-ui@next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants