Breadcrumbs: add opportunity to use another Link component
baushonok opened this issue · comments
I use BrowserRouter
and Link
from react-router-dom. And I want to use this Link
in breadcrumbs. But:
Breadcrumbs
component uses component fromgravity-ui
- I may use my
Link
in proprenderItemContent
, but I'll get console error because of nested<a />
Link
ingravity-ui
may be rendered as<span />
ifhref
is not a string, but I needhref
prop for myLink
I think that some prop like renderLink?: () => ReactNode
should help me. Or maybe there's some best solution.