gravity-ui / uikit

Home Page:https://gravity-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breadcrumbs: add opportunity to use another Link component

baushonok opened this issue · comments

commented

I use BrowserRouter and Link from react-router-dom. And I want to use this Link in breadcrumbs. But:

  • Breadcrumbs component uses component from gravity-ui
  • I may use my Link in prop renderItemContent, but I'll get console error because of nested <a />
  • Link in gravity-ui may be rendered as <span /> if href is not a string, but I need href prop for my Link

I think that some prop like renderLink?: () => ReactNode should help me. Or maybe there's some best solution.