flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

Breadcrumb and Next.js's Link

Open phbernard opened this issue 1 year ago • 3 comments

  • [x] I have searched the Issues to see if this bug has already been reported
  • [x] 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?

phbernard avatar Dec 29 '24 19:12 phbernard

Any news about this feedback? When posting it, my feeling was that it could be addressed quite easily. The PR is rather simple and in line with other components of flowbite-react.

phbernard avatar May 16 '25 12:05 phbernard

Any news about this feedback? When posting it, my feeling was that it could be addressed quite easily. The PR is rather simple and in line with other components of flowbite-react.

Sorry, hectic days here, left a small comment on the PR btw.

SutuSebastian avatar May 19 '25 09:05 SutuSebastian