themesberg / themesberg/flowbite-react

Breadcrumb and Next.js's Link

Open
#1,521 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.1k
Forks
506
PR merge metrics
No merged PRs in 30d

Description

  • 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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the BreadcrumbItem API and comparing it with components that already accept an as prop for Next.js's Link. Verify how wrapping BreadcrumbItem affects its styling; done means BreadcrumbItem supports the Link usage shown without breaking its existing appearance or href behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, tailwindcss, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.