Skip to content

Commit e8fe9c9

Browse files
committed
fix: #73
1 parent fd3c896 commit e8fe9c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/routes/docs/components/mega-menu.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The mega menu component is a full-width dropdown that can be triggered by clicki
2828
Use this example to show a list of links aligned on three columns inside the mega menu dropdown.
2929

3030
```svelte example class="h-[30rem] md:h-80"
31-
<script>
31+
<script lang="ts">
3232
import { Navbar, NavBrand, NavHamburger, NavUl, NavLi, MegaMenu } from "flowbite-svelte";
3333
import { ChevronDownOutline } from "flowbite-svelte-icons";
3434
let menu = [
@@ -58,7 +58,7 @@ Use this example to show a list of links aligned on three columns inside the meg
5858
<NavLi class="cursor-pointer" onclick={() => (open = true)}>
5959
Mega menu<ChevronDownOutline class="text-primary-800 ms-2 inline h-6 w-6 dark:text-white" />
6060
</NavLi>
61-
<MegaMenu items={menu} bind:open>
61+
<MegaMenu items={menu}>
6262
{#snippet children({ item })}
6363
<a href={item.href} class="hover:text-primary-600 dark:hover:text-primary-500">{item.name}</a>
6464
{/snippet}
@@ -75,9 +75,9 @@ Use this example to show a list of links aligned on three columns inside the meg
7575
This example of a mega menu dropdown can be used to also show an icon near the text of the link.
7676

7777
```svelte example class="h-[30rem] md:h-80"
78-
<script>
78+
<script lang="ts">
7979
import { Navbar, NavBrand, NavHamburger, NavUl, NavLi, MegaMenu } from "flowbite-svelte";
80-
import { IconOutline, ChevronDownOutline, UserCircleOutline } from "flowbite-svelte-icons";
80+
import { ChevronDownOutline, UserCircleOutline } from "flowbite-svelte-icons";
8181
let menu = [
8282
{ name: "About us", href: "/about", icon: UserCircleOutline },
8383
{ name: "Blog", href: "/blog", icon: UserCircleOutline },

0 commit comments

Comments
 (0)