(svelte) how can I use Drawer a part from main slot in layout? #979
Unanswered
magic-thomas
asked this question in
Q&A
Replies: 1 comment
-
|
I think this is what you are looking for. I created a new Sveltekit default project with all of the latest dependencies. What did do? The short version. I moved the code from your Drawer.svelte file to the __lauout.svelte file and deleted the Drawer.svelte file. This left me with just the 2 files below. __layout.svelte file Take notice of lines 6, 38 and 43. default.svelte file |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
I want to use drawer ( https://daisyui.com/components/drawer/#navbar-menu-for-desktop--sidebar-drawer-for-mobile )
But the Drawer component push down the main content slot below the screen.
I have __layout.svelte
the slot part can not be seen without scrolling .
the Drawer.svelte is exact same with the link.
I don't want to mix the drawer part with the content slot.
How can I use Drawer component separately ?
Beta Was this translation helpful? Give feedback.
All reactions