Skip to content

Commit 6aa7ddb

Browse files
committed
feat(Drawer): Add optional content slot above menu in Drawer
1 parent 71e3ab6 commit 6aa7ddb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: components/mdc/Drawer/Drawer.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ main {
123123
{/if}
124124

125125
<div class="mdc-drawer__content">
126+
<slot name="drawer-content-top" />
126127
<!-- override built-in padding so height 100 works correctly without creating a vertical scroller -->
127128
<!-- changing the list to flex causes the margins to not collapse -->
128129
<nav class="mdc-list flex column p-0" class:h-100={isFullHeightMenu} on:click={onListClick} bind:this={listElement}>

0 commit comments

Comments
 (0)