themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS

Home Page:https://flowbite-react.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breadcrumb component to allow a react-router <Link> instead of a bare <a>

rnicholus opened this issue · comments

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

Summary

Currently, <BreadcrumbItem> can be rendered as an anchor link or a span. But given that this is a React library, and the overwhelming majority of React apps use react-router, <BreadcrumbItem> should at least be able to render a <Link>.

This can probably be accomplished by refactoring <BreadcrumbItem> to accept as={Link}.

i'm using next, also want this feature...

I am working on this feature