-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(navbar): do not close menu if no url provided #217
- Loading branch information
Showing
4 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1538,7 +1538,7 @@ export const examples: Record<string, Example[]> = { | |
description: 'This example can be used to show a secondary dropdown menu when clicking on one of the navigation links.', | ||
url: '/examples/[theme-rtl]/navbar/03-with-dropdown', | ||
content: | ||
'import { component$ } from \'@builder.io/qwik\'\nimport { Dropdown, Navbar } from \'flowbite-qwik\'\nimport { Link, StaticGenerateHandler } from \'@builder.io/qwik-city\'\n\nexport default component$(() => {\n return (\n <Navbar fluid rounded>\n <Navbar.Brand tag={Link} href="https://flowbite-qwik.com/">\n <img src="/small-logo.png" alt="Flowbite qwik logo" width="215" height="195" class="h-8 w-auto" />\n <span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white">Flowbite Qwik</span>\n </Navbar.Brand>\n <div class="flex items-center md:order-2">\n <Dropdown\n as={\n <img\n class="h-8 w-8 rounded-full"\n src="https://res.cloudinary.com/dkht4mwqi/image/upload/f_auto,q_auto/v1718462568/flowbite-qwik/jpnykkz8ojq7ojgg4qta.jpg"\n alt="user photo"\n />\n }\n >\n <Dropdown.Item header>\n <span class="block text-sm">Bonnie Green</span>\n <span class="block truncate text-sm font-medium">[email protected]</span>\n </Dropdown.Item>\n <Dropdown.Item>Dashboard</Dropdown.Item>\n <Dropdown.Item>Settings</Dropdown.Item>\n <Dropdown.Item>Earnings</Dropdown.Item>\n <Dropdown.Item divider />\n <Dropdown.Item>Sign out</Dropdown.Item>\n </Dropdown>\n <Navbar.Toggle />\n </div>\n <Navbar.Collapse>\n <Navbar.Link href="/navbars" active>\n Home\n </Navbar.Link>\n <Navbar.Link href="/navbars">About</Navbar.Link>\n <Navbar.Link href="/navbars" tag="div">\n <Dropdown label="Services" inline>\n <Dropdown.Item>Dashboard</Dropdown.Item>\n <Dropdown.Item>Settings</Dropdown.Item>\n <Dropdown.Item>Earnings</Dropdown.Item>\n </Dropdown>\n </Navbar.Link>\n <Navbar.Link href="/navbars">Pricing</Navbar.Link>\n <Navbar.Link href="/navbars">Contact</Navbar.Link>\n </Navbar.Collapse>\n </Navbar>\n )\n})', | ||
'import { component$ } from \'@builder.io/qwik\'\nimport { Dropdown, Navbar } from \'flowbite-qwik\'\nimport { Link, StaticGenerateHandler } from \'@builder.io/qwik-city\'\n\nexport default component$(() => {\n return (\n <Navbar fluid rounded>\n <Navbar.Brand tag={Link} href="https://flowbite-qwik.com/">\n <img src="/small-logo.png" alt="Flowbite qwik logo" width="215" height="195" class="h-8 w-auto" />\n <span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white">Flowbite Qwik</span>\n </Navbar.Brand>\n <div class="flex items-center md:order-2">\n <Dropdown\n as={\n <img\n class="h-8 w-8 rounded-full"\n src="https://res.cloudinary.com/dkht4mwqi/image/upload/f_auto,q_auto/v1718462568/flowbite-qwik/jpnykkz8ojq7ojgg4qta.jpg"\n alt="user photo"\n />\n }\n >\n <Dropdown.Item header>\n <span class="block text-sm">Bonnie Green</span>\n <span class="block truncate text-sm font-medium">[email protected]</span>\n </Dropdown.Item>\n <Dropdown.Item>Dashboard</Dropdown.Item>\n <Dropdown.Item>Settings</Dropdown.Item>\n <Dropdown.Item>Earnings</Dropdown.Item>\n <Dropdown.Item divider />\n <Dropdown.Item>Sign out</Dropdown.Item>\n </Dropdown>\n <Navbar.Toggle />\n </div>\n <Navbar.Collapse>\n <Navbar.Link href="/navbars" active>\n Home\n </Navbar.Link>\n <Navbar.Link href="/navbars">About</Navbar.Link>\n <Navbar.Link tag="div">\n <Dropdown label="Services" inline>\n <Dropdown.Item>Dashboard</Dropdown.Item>\n <Dropdown.Item>Settings</Dropdown.Item>\n <Dropdown.Item>Earnings</Dropdown.Item>\n </Dropdown>\n </Navbar.Link>\n <Navbar.Link href="/navbars">Pricing</Navbar.Link>\n <Navbar.Link href="/navbars">Contact</Navbar.Link>\n </Navbar.Collapse>\n </Navbar>\n )\n})', | ||
height: '400', | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters