-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
NEXT: Drawers #2397
Comments
Hi there, I got a feature request! 😊 It would be very nice if we could pass easing functions to the drawers open and close transitions. |
Hi again, I got another one. It would be nice if you could just swipe to close the drawers. (mostly for mobile) |
Please move drawers away from the singleton pattern. |
Over in the Discord, there was a brief discussion about shallow routing for Drawers in v2, and @Sarenor asked me to send my solution for this here. I haven't done properly extensive testing on this, but it seems to work. function openDrawer(): void {
pushState('', { showDrawer: true });
drawerStore.open({ position: 'right' });
} <script lang="ts">
function closeDrawer(): void {
history.back();
}
$: $drawerStore.open = $page.state.showDrawer;
</script>
<Drawer>
...
</Drawer> For type safety, you also need to set the interface for the page state in Ref: |
In v3, we're going to combine modals/drawers/toasts into a unified "overlay system": |
Warning
This issue is a work in progress.
This will act as a hub to centralize this information.
Maintainer Requests
The following requests are coming straight from the Skeleton team. These are highly likely be implemented:
Community Requests
The following requests have come from the community and are under consideration:
Bugs and Issues
Feedback
If you have additional updates or requests for this feature, please do so in the comments section below.
The text was updated successfully, but these errors were encountered: