Skip to content
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

Breadcrumb and Next.js's Link #1521

Open
2 tasks done
phbernard opened this issue Dec 29, 2024 · 0 comments
Open
2 tasks done

Breadcrumb and Next.js's Link #1521

phbernard opened this issue Dec 29, 2024 · 0 comments

Comments

@phbernard
Copy link

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Summary

When used with Next.js, some components have a as attribute so they can be used with Next.js's Link component. For example:

import Link from 'next/link';
import { NavbarBrand } from 'flowbite-react';

<NavbarBrand as={Link} href='/'>...

However, it doesn't seem to be the case of BreadcrumbItem. It takes only an href element, but not as.

It is possible to surround a BreadcrumbItem with a Link. But it breaks the styling, a sign that this is not the right way to handle this.

Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant